tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Authority
IAdministrationAuthority.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Threading
;
3
using
System.Threading.Tasks
;
4
5
using
Tgstation.Server.Api.Models.Response
;
6
using
Tgstation.Server.Api.Rights
;
7
using
Tgstation.Server.Host.Authority.Core
;
8
using
Tgstation.Server.Host.Security
;
9
10
namespace
Tgstation.Server.Host.Authority
11
{
15
public
interface
IAdministrationAuthority
:
IAuthority
16
{
23
[
TgsAuthorize
(
AdministrationRights
.ChangeVersion)]
24
ValueTask<AuthorityResponse<AdministrationResponse>
>
GetUpdateInformation
(
bool
forceFresh
, CancellationToken
cancellationToken
);
25
33
[
TgsAuthorize
(
AdministrationRights
.ChangeVersion |
AdministrationRights
.UploadVersion)]
34
ValueTask<AuthorityResponse<ServerUpdateResponse>
>
TriggerServerVersionChange
(Version
targetVersion
,
bool
uploadZip
, CancellationToken
cancellationToken
);
35
40
[
TgsAuthorize
(
AdministrationRights
.RestartHost)]
41
ValueTask<AuthorityResponse>
TriggerServerRestart
();
42
}
43
}
Tgstation.Server.Host.Authority.Core.IAuthority
Business logic for interating with the server.
Definition
IAuthority.cs:9
Tgstation.Server.Host.Authority.IAdministrationAuthority
IAuthority for administrative server operations.
Definition
IAdministrationAuthority.cs:16
Tgstation.Server.Host.Authority.IAdministrationAuthority.TriggerServerRestart
ValueTask< AuthorityResponse > TriggerServerRestart()
Triggers a restart of tgstation-server without terminating running game instances.
Tgstation.Server.Host.Authority.IAdministrationAuthority.TriggerServerVersionChange
ValueTask< AuthorityResponse< ServerUpdateResponse > > TriggerServerVersionChange(Version targetVersion, bool uploadZip, CancellationToken cancellationToken)
Triggers a restart of tgstation-server without terminating running game instances,...
Tgstation.Server.Host.Authority.IAdministrationAuthority.GetUpdateInformation
ValueTask< AuthorityResponse< AdministrationResponse > > GetUpdateInformation(bool forceFresh, CancellationToken cancellationToken)
Gets the AdministrationResponse containing server update information.
Tgstation.Server.Api.Models.Response
Definition
AdministrationResponse.cs:6
Tgstation.Server.Api.Rights
Definition
AdministrationRights.cs:4
Tgstation.Server.Api.Rights.ConfigurationRights.List
@ List
User may list files if the Models.Instance allows it.
Tgstation.Server.Api.Rights.AdministrationRights
AdministrationRights
Administration rights for the server.
Definition
AdministrationRights.cs:10
Tgstation.Server.Host.Authority.Core
Definition
AuthorityBase.cs:14
Tgstation.Server.Host.Authority
Definition
AdministrationAuthority.cs:21
Tgstation.Server.Host.Security
Definition
AuthenticationContext.cs:8
Generated by
1.9.8