tgstation-server
6.19.1
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Components
Repository
ICredentialsProvider.cs
Go to the documentation of this file.
1
using
System.Threading;
2
using
System.Threading.Tasks;
3
4
using
LibGit2Sharp;
5
using
LibGit2Sharp.Handlers;
6
7
using
Tgstation.Server.Host.Jobs
;
8
9
namespace
Tgstation.Server.Host.Components.Repository
10
{
14
interface
ICredentialsProvider
15
{
24
ValueTask<CredentialsHandler>
GenerateCredentialsHandler
(
IGitRemoteFeatures
remoteFeatures,
string
? username,
string
? password, CancellationToken cancellationToken);
25
30
public
void
CheckBadCredentialsException
(LibGit2SharpException exception);
31
}
32
}
Tgstation.Server.Host.Components.Repository.ICredentialsProvider
For generating CredentialsHandlers.
Definition
ICredentialsProvider.cs:15
Tgstation.Server.Host.Components.Repository.ICredentialsProvider.GenerateCredentialsHandler
ValueTask< CredentialsHandler > GenerateCredentialsHandler(IGitRemoteFeatures remoteFeatures, string? username, string? password, CancellationToken cancellationToken)
Generate a CredentialsHandler from a given username and password .
Tgstation.Server.Host.Components.Repository.ICredentialsProvider.CheckBadCredentialsException
void CheckBadCredentialsException(LibGit2SharpException exception)
Rethrow the authentication failure message as a JobException if it is one.
Tgstation.Server.Host.Components.Repository.IGitRemoteFeatures
Provides features for remote git services.
Definition
IGitRemoteFeatures.cs:10
Tgstation.Server.Host.Components.Repository
Definition
DefaultGitRemoteFeatures.cs:8
Tgstation.Server.Host.Jobs
Definition
IJobManager.cs:8
Generated by
1.9.8