tgstation-server 5.12.7
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 Task<IRepository> LoadRepository(CancellationToken cancellationToken);
30
42 Task<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 Task DeleteRepository(CancellationToken cancellationToken);
57 }
58}
Factory for creating and loading IRepositorys.
Task DeleteRepository(CancellationToken cancellationToken)
Delete the current repository.
bool CloneInProgress
If a CloneRepository(Uri, string, string, string, JobProgressReporter, bool, CancellationToken) opera...
Task< IRepository > CloneRepository(Uri url, string initialBranch, string username, string password, JobProgressReporter progressReporter, bool recurseSubmodules, CancellationToken cancellationToken)
Clone the repository at url .
Task< IRepository > LoadRepository(CancellationToken cancellationToken)
Attempt to load the IRepository from the default location.
bool InUse
If something is holding a lock on the repository.