tgstation-server 6.12.0
The /tg/station 13 server suite
|
Public Member Functions | |||||||
AdministrationClient (IApiClient apiClient) | |||||||
Initializes a new instance of the AdministrationClient class. | |||||||
ValueTask< AdministrationResponse > | Read (bool forceFresh, CancellationToken cancellationToken) | ||||||
Get the AdministrationResponse represented by the IAdministrationClient.
| |||||||
async ValueTask< ServerUpdateResponse > | Update (ServerUpdateRequest updateRequest, Stream? zipFileStream, CancellationToken cancellationToken) | ||||||
Updates the AdministrationResponse setttings.
| |||||||
ValueTask | Restart (CancellationToken cancellationToken) | ||||||
Restarts the TGS server.
| |||||||
ValueTask< List< LogFileResponse > > | ListLogs (PaginationSettings? paginationSettings, CancellationToken cancellationToken) | ||||||
Lists the log files available for download.
| |||||||
async ValueTask< Tuple< LogFileResponse, Stream > > | GetLog (LogFileResponse logFile, CancellationToken cancellationToken) | ||||||
Download a given logFile .
| |||||||
Public Member Functions inherited from Tgstation.Server.Client.PaginatedClient | |||||||
PaginatedClient (IApiClient apiClient) | |||||||
Initializes a new instance of the PaginatedClient class. | |||||||
Additional Inherited Members | |
Protected Member Functions inherited from Tgstation.Server.Client.PaginatedClient | |
async ValueTask< List< TModel > > | ReadPaged< TModel > (PaginationSettings? paginationSettings, string route, long? instanceId, CancellationToken cancellationToken) |
Reads a given route with paged results. | |
Properties inherited from Tgstation.Server.Client.PaginatedClient | |
IApiClient | ApiClient [get] |
The IApiClient for the PaginatedClient. | |
Definition at line 15 of file AdministrationClient.cs.
Tgstation.Server.Client.AdministrationClient.AdministrationClient | ( | IApiClient | apiClient | ) |
Initializes a new instance of the AdministrationClient class.
apiClient | The IApiClient for the PaginatedClient. |
Definition at line 21 of file AdministrationClient.cs.
async ValueTask< Tuple< LogFileResponse, Stream > > Tgstation.Server.Client.AdministrationClient.GetLog | ( | LogFileResponse | logFile, |
CancellationToken | cancellationToken | ||
) |
Download a given logFile .
logFile | The LogFileResponse to download. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IAdministrationClient.
Definition at line 60 of file AdministrationClient.cs.
References Tgstation.Server.Client.ApiClient.Download(), Tgstation.Server.Api.Models.Response.LogFileResponse.Name, and Tgstation.Server.Api.Routes.SanitizeGetPath().
ValueTask< List< LogFileResponse > > Tgstation.Server.Client.AdministrationClient.ListLogs | ( | PaginationSettings? | paginationSettings, |
CancellationToken | cancellationToken | ||
) |
Lists the log files available for download.
paginationSettings | The optional PaginationSettings for the operation. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IAdministrationClient.
ValueTask< AdministrationResponse > Tgstation.Server.Client.AdministrationClient.Read | ( | bool | forceFresh, |
CancellationToken | cancellationToken | ||
) |
Get the AdministrationResponse represented by the IAdministrationClient.
forceFresh | If true the response will be forcefully regenerated. |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IAdministrationClient.
ValueTask Tgstation.Server.Client.AdministrationClient.Restart | ( | CancellationToken | cancellationToken | ) |
Restarts the TGS server.
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IAdministrationClient.
async ValueTask< ServerUpdateResponse > Tgstation.Server.Client.AdministrationClient.Update | ( | ServerUpdateRequest | updateRequest, |
Stream? | zipFileStream, | ||
CancellationToken | cancellationToken | ||
) |
Updates the AdministrationResponse setttings.
updateRequest | The ServerUpdateRequest. |
zipFileStream | The Stream for the .zip file if ServerUpdateRequest.UploadZip is true . Will be ignored if it is false . |
cancellationToken | The CancellationToken for the operation. |
Implements Tgstation.Server.Client.IAdministrationClient.
Definition at line 30 of file AdministrationClient.cs.
References Tgstation.Server.Api.Routes.Administration, Tgstation.Server.Client.ApiClient.Upload(), and Tgstation.Server.Api.Models.Request.ServerUpdateRequest.UploadZip.