tgstation-server 6.12.0
The /tg/station 13 server suite
|
For managing server administration. More...
Public Member Functions | |
ValueTask< AdministrationResponse > | Read (bool forceFresh=false, CancellationToken cancellationToken=default) |
Get the AdministrationResponse represented by the IAdministrationClient. | |
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. | |
ValueTask< Tuple< LogFileResponse, Stream > > | GetLog (LogFileResponse logFile, CancellationToken cancellationToken) |
Download a given logFile . | |
For managing server administration.
Definition at line 15 of file IAdministrationClient.cs.
ValueTask< Tuple< LogFileResponse, Stream > > Tgstation.Server.Client.IAdministrationClient.GetLog | ( | LogFileResponse | logFile, |
CancellationToken | cancellationToken | ||
) |
Download a given logFile .
logFile | The LogFileResponse to download. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.AdministrationClient.
ValueTask< List< LogFileResponse > > Tgstation.Server.Client.IAdministrationClient.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. |
Implemented in Tgstation.Server.Client.AdministrationClient.
ValueTask< AdministrationResponse > Tgstation.Server.Client.IAdministrationClient.Read | ( | bool | forceFresh = false , |
CancellationToken | cancellationToken = default |
||
) |
Get the AdministrationResponse represented by the IAdministrationClient.
forceFresh | If true the response will be forcefully regenerated. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.AdministrationClient.
ValueTask Tgstation.Server.Client.IAdministrationClient.Restart | ( | CancellationToken | cancellationToken | ) |
Restarts the TGS server.
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.AdministrationClient.
ValueTask< ServerUpdateResponse > Tgstation.Server.Client.IAdministrationClient.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. |
Implemented in Tgstation.Server.Client.AdministrationClient.