tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IRepositoryManager.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
6
8{
13 {
17 bool InUse { get; }
18
22 bool CloneInProgress { get; }
23
29 ValueTask<IRepository?> LoadRepository(CancellationToken cancellationToken);
30
42 ValueTask<IRepository?> CloneRepository(
43 Uri url,
44 string? initialBranch,
45 string? username,
46 string? password,
47 JobProgressReporter progressReporter,
48 bool recurseSubmodules,
49 CancellationToken cancellationToken);
50
56 ValueTask DeleteRepository(CancellationToken cancellationToken);
57 }
58}
ValueTask< IRepository?> CloneRepository(Uri url, string? initialBranch, string? username, string? password, JobProgressReporter progressReporter, bool recurseSubmodules, CancellationToken cancellationToken)
Clone the repository at url .
bool CloneInProgress
If a CloneRepository(Uri, string, string, string, JobProgressReporter, bool, CancellationToken) opera...
ValueTask< IRepository?> LoadRepository(CancellationToken cancellationToken)
Attempt to load the IRepository from the default location.
ValueTask DeleteRepository(CancellationToken cancellationToken)
Delete the current repository.
bool InUse
If something is holding a lock on the repository.