Class DeploymentStrategy.Canary
- Namespace
- Invex.StructuredText.AzureDevopsPipelines.DevopsPipelineModel.Jobs
- Assembly
- Invex.StructuredText.AzureDevopsPipelines.dll
Canary deployment strategy.
public sealed record DeploymentStrategy.Canary : DeploymentStrategy
- Inheritance
-
objectDeploymentStrategy.Canary
Constructors
Canary()
public Canary()
Properties
Deploy
Deployment steps.
public DeploymentHook? Deploy { get; init; }
Property Value
Increments
Increments in which to roll out the canary deployment.
public required IReadOnlyList<Template> Increments { get; init; }
Property Value
- IReadOnlyList<Template>
OnFailure
Steps to run on failure.
public DeploymentHook? OnFailure { get; init; }
Property Value
OnSuccess
Steps to run on success.
public DeploymentHook? OnSuccess { get; init; }
Property Value
PostRouteTraffic
Post-route traffic steps.
public DeploymentHook? PostRouteTraffic { get; init; }
Property Value
PreDeploy
Pre-deployment steps.
public DeploymentHook? PreDeploy { get; init; }
Property Value
RouteTraffic
Route traffic steps.
public DeploymentHook? RouteTraffic { get; init; }
Property Value
Methods
Match(Action<RunOnce>, Action<Rolling>, Action<Canary>)
public override void Match(Action<DeploymentStrategy.RunOnce> runOnce, Action<DeploymentStrategy.Rolling> rolling, Action<DeploymentStrategy.Canary> canary)
Parameters
runOnceAction<DeploymentStrategy.RunOnce>rollingAction<DeploymentStrategy.Rolling>canaryAction<DeploymentStrategy.Canary>
MatchCanary(Action<Canary>, Action)
public override void MatchCanary(Action<DeploymentStrategy.Canary> canary, Action @else)
Parameters
canaryAction<DeploymentStrategy.Canary>elseAction
MatchCanary<TMatchOutput>(Func<Canary, TMatchOutput>, Func<TMatchOutput>)
public override TMatchOutput MatchCanary<TMatchOutput>(Func<DeploymentStrategy.Canary, TMatchOutput> canary, Func<TMatchOutput> @else)
Parameters
canaryFunc<DeploymentStrategy.Canary, TMatchOutput>elseFunc<TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
MatchCanary<TState>(TState, Action<TState, Canary>, Action<TState>)
public override void MatchCanary<TState>(TState state, Action<TState, DeploymentStrategy.Canary> canary, Action<TState> @else)
Parameters
stateTStatecanaryAction<TState, DeploymentStrategy.Canary>elseAction<TState>
Type Parameters
TState
MatchCanary<TState, TMatchOutput>(TState, Func<TState, Canary, TMatchOutput>, Func<TState, TMatchOutput>)
public override TMatchOutput MatchCanary<TState, TMatchOutput>(TState state, Func<TState, DeploymentStrategy.Canary, TMatchOutput> canary, Func<TState, TMatchOutput> @else)
Parameters
stateTStatecanaryFunc<TState, DeploymentStrategy.Canary, TMatchOutput>elseFunc<TState, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
MatchRolling(Action<Rolling>, Action)
public override void MatchRolling(Action<DeploymentStrategy.Rolling> rolling, Action @else)
Parameters
rollingAction<DeploymentStrategy.Rolling>elseAction
MatchRolling<TMatchOutput>(Func<Rolling, TMatchOutput>, Func<TMatchOutput>)
public override TMatchOutput MatchRolling<TMatchOutput>(Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<TMatchOutput> @else)
Parameters
rollingFunc<DeploymentStrategy.Rolling, TMatchOutput>elseFunc<TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
MatchRolling<TState>(TState, Action<TState, Rolling>, Action<TState>)
public override void MatchRolling<TState>(TState state, Action<TState, DeploymentStrategy.Rolling> rolling, Action<TState> @else)
Parameters
stateTStaterollingAction<TState, DeploymentStrategy.Rolling>elseAction<TState>
Type Parameters
TState
MatchRolling<TState, TMatchOutput>(TState, Func<TState, Rolling, TMatchOutput>, Func<TState, TMatchOutput>)
public override TMatchOutput MatchRolling<TState, TMatchOutput>(TState state, Func<TState, DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<TState, TMatchOutput> @else)
Parameters
stateTStaterollingFunc<TState, DeploymentStrategy.Rolling, TMatchOutput>elseFunc<TState, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
MatchRunOnce(Action<RunOnce>, Action)
public override void MatchRunOnce(Action<DeploymentStrategy.RunOnce> runOnce, Action @else)
Parameters
runOnceAction<DeploymentStrategy.RunOnce>elseAction
MatchRunOnce<TMatchOutput>(Func<RunOnce, TMatchOutput>, Func<TMatchOutput>)
public override TMatchOutput MatchRunOnce<TMatchOutput>(Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<TMatchOutput> @else)
Parameters
runOnceFunc<DeploymentStrategy.RunOnce, TMatchOutput>elseFunc<TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
MatchRunOnce<TState>(TState, Action<TState, RunOnce>, Action<TState>)
public override void MatchRunOnce<TState>(TState state, Action<TState, DeploymentStrategy.RunOnce> runOnce, Action<TState> @else)
Parameters
stateTStaterunOnceAction<TState, DeploymentStrategy.RunOnce>elseAction<TState>
Type Parameters
TState
MatchRunOnce<TState, TMatchOutput>(TState, Func<TState, RunOnce, TMatchOutput>, Func<TState, TMatchOutput>)
public override TMatchOutput MatchRunOnce<TState, TMatchOutput>(TState state, Func<TState, DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<TState, TMatchOutput> @else)
Parameters
stateTStaterunOnceFunc<TState, DeploymentStrategy.RunOnce, TMatchOutput>elseFunc<TState, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
Match<TMatchOutput>(Func<RunOnce, TMatchOutput>, Func<Rolling, TMatchOutput>, Func<Canary, TMatchOutput>)
public override TMatchOutput Match<TMatchOutput>(Func<DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<DeploymentStrategy.Canary, TMatchOutput> canary)
Parameters
runOnceFunc<DeploymentStrategy.RunOnce, TMatchOutput>rollingFunc<DeploymentStrategy.Rolling, TMatchOutput>canaryFunc<DeploymentStrategy.Canary, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TMatchOutput
Match<TState>(TState, Action<TState, RunOnce>, Action<TState, Rolling>, Action<TState, Canary>)
public override void Match<TState>(TState state, Action<TState, DeploymentStrategy.RunOnce> runOnce, Action<TState, DeploymentStrategy.Rolling> rolling, Action<TState, DeploymentStrategy.Canary> canary)
Parameters
stateTStaterunOnceAction<TState, DeploymentStrategy.RunOnce>rollingAction<TState, DeploymentStrategy.Rolling>canaryAction<TState, DeploymentStrategy.Canary>
Type Parameters
TState
Match<TState, TMatchOutput>(TState, Func<TState, RunOnce, TMatchOutput>, Func<TState, Rolling, TMatchOutput>, Func<TState, Canary, TMatchOutput>)
public override TMatchOutput Match<TState, TMatchOutput>(TState state, Func<TState, DeploymentStrategy.RunOnce, TMatchOutput> runOnce, Func<TState, DeploymentStrategy.Rolling, TMatchOutput> rolling, Func<TState, DeploymentStrategy.Canary, TMatchOutput> canary)
Parameters
stateTStaterunOnceFunc<TState, DeploymentStrategy.RunOnce, TMatchOutput>rollingFunc<TState, DeploymentStrategy.Rolling, TMatchOutput>canaryFunc<TState, DeploymentStrategy.Canary, TMatchOutput>
Returns
- TMatchOutput
Type Parameters
TStateTMatchOutput
UnwrapCanary()
public override DeploymentStrategy.Canary UnwrapCanary()
Returns
UnwrapRolling()
public override DeploymentStrategy.Rolling UnwrapRolling()
Returns
UnwrapRunOnce()
public override DeploymentStrategy.RunOnce UnwrapRunOnce()