tgstation-server 6.3.2
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IAdministrationClient.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Threading;
5using System.Threading.Tasks;
6
9
11{
15 public interface IAdministrationClient
16 {
22 ValueTask<AdministrationResponse> Read(CancellationToken cancellationToken);
23
31 ValueTask<ServerUpdateResponse> Update(ServerUpdateRequest updateRequest, Stream? zipFileStream, CancellationToken cancellationToken);
32
38 ValueTask Restart(CancellationToken cancellationToken);
39
46 ValueTask<List<LogFileResponse>> ListLogs(PaginationSettings? paginationSettings, CancellationToken cancellationToken);
47
54 ValueTask<Tuple<LogFileResponse, Stream>> GetLog(LogFileResponse logFile, CancellationToken cancellationToken);
55 }
56}
Settings for a paginated request.
ValueTask Restart(CancellationToken cancellationToken)
Restarts the TGS server.
ValueTask< ServerUpdateResponse > Update(ServerUpdateRequest updateRequest, Stream? zipFileStream, CancellationToken cancellationToken)
Updates the AdministrationResponse setttings.
ValueTask< AdministrationResponse > Read(CancellationToken cancellationToken)
Get the AdministrationResponse represented by the IAdministrationClient.
ValueTask< Tuple< LogFileResponse, Stream > > GetLog(LogFileResponse logFile, CancellationToken cancellationToken)
Download a given logFile .
ValueTask< List< LogFileResponse > > ListLogs(PaginationSettings? paginationSettings, CancellationToken cancellationToken)
Lists the log files available for download.