tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
NoOpRemoteDeploymentManager.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Concurrent;
3using System.Collections.Generic;
4using System.Threading;
5using System.Threading.Tasks;
6
7using Microsoft.Extensions.Logging;
8
12
14{
19 {
27 ILogger<NoOpRemoteDeploymentManager> logger,
28 Api.Models.Instance metadata,
29 ConcurrentDictionary<long, Action<bool>> activationCallbacks)
30 : base(logger, metadata, activationCallbacks)
31 {
32 }
33
35 public override ValueTask FailDeployment(Models.CompileJob compileJob, string errorMessage, CancellationToken cancellationToken) => ValueTask.CompletedTask;
36
38 public override ValueTask<IReadOnlyCollection<TestMerge>> RemoveMergedTestMerges(IRepository repository, Models.RepositorySettings repositorySettings, Models.RevisionInformation revisionInformation, CancellationToken cancellationToken)
39 => ValueTask.FromResult<IReadOnlyCollection<TestMerge>>(Array.Empty<TestMerge>());
40
42 public override ValueTask StartDeployment(IGitRemoteInformation remoteInformation, Models.CompileJob compileJob, CancellationToken cancellationToken)
43 => ValueTask.CompletedTask;
44
46 protected override ValueTask ApplyDeploymentImpl(Models.CompileJob compileJob, CancellationToken cancellationToken) => ValueTask.CompletedTask;
47
49 protected override ValueTask CommentOnTestMergeSource(
50 Models.RepositorySettings repositorySettings,
51 string remoteRepositoryOwner,
52 string remoteRepositoryName,
53 string comment,
54 int testMergeNumber,
55 CancellationToken cancellationToken)
56 => ValueTask.CompletedTask;
57
59 protected override string FormatTestMerge(
60 Models.RepositorySettings repositorySettings,
61 Models.CompileJob compileJob,
62 TestMerge testMerge,
63 string remoteRepositoryOwner,
64 string remoteRepositoryName,
65 bool updated)
66 => String.Empty;
67
69 protected override ValueTask MarkInactiveImpl(Models.CompileJob compileJob, CancellationToken cancellationToken) => ValueTask.CompletedTask;
70
72 protected override ValueTask StageDeploymentImpl(Models.CompileJob compileJob, CancellationToken cancellationToken) => ValueTask.CompletedTask;
73 }
74}
readonly ConcurrentDictionary< long, Action< bool > > activationCallbacks
A map of CompileJob Api.Models.EntityId.Ids to activation callback Action<T1>s.
override ValueTask FailDeployment(Models.CompileJob compileJob, string errorMessage, CancellationToken cancellationToken)
Fail a deployment for a given compileJob .A ValueTask representing the running operation.
override ValueTask StageDeploymentImpl(Models.CompileJob compileJob, CancellationToken cancellationToken)
override ValueTask ApplyDeploymentImpl(Models.CompileJob compileJob, CancellationToken cancellationToken)
override ValueTask CommentOnTestMergeSource(Models.RepositorySettings repositorySettings, string remoteRepositoryOwner, string remoteRepositoryName, string comment, int testMergeNumber, CancellationToken cancellationToken)
override ValueTask MarkInactiveImpl(Models.CompileJob compileJob, CancellationToken cancellationToken)
NoOpRemoteDeploymentManager(ILogger< NoOpRemoteDeploymentManager > logger, Api.Models.Instance metadata, ConcurrentDictionary< long, Action< bool > > activationCallbacks)
Initializes a new instance of the NoOpRemoteDeploymentManager class.
override ValueTask< IReadOnlyCollection< TestMerge > > RemoveMergedTestMerges(IRepository repository, Models.RepositorySettings repositorySettings, Models.RevisionInformation revisionInformation, CancellationToken cancellationToken)
Get the updated list of TestMerges for an origin merge.A ValueTask<TResult> resulting in the IReadOnl...
override ValueTask StartDeployment(IGitRemoteInformation remoteInformation, Models.CompileJob compileJob, CancellationToken cancellationToken)
Start a deployment for a given compileJob .A ValueTask representing the running operation.
override string FormatTestMerge(Models.RepositorySettings repositorySettings, Models.CompileJob compileJob, TestMerge testMerge, string remoteRepositoryOwner, string remoteRepositoryName, bool updated)
Represents an on-disk git repository.