Documentation
¶
Index ¶
- Constants
- type Plugin
- func (p *Plugin) BuildPipelineSyncStages(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.BuildPipelineSyncStagesResponse, error)
- func (p *Plugin) BuildQuickSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildQuickSyncStagesInput) (*sdk.BuildQuickSyncStagesResponse, error)
- func (p *Plugin) DetermineStrategy(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.DetermineStrategyResponse, error)
- func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.DetermineVersionsResponse, error)
- func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, ...) (*sdk.ExecuteStageResponse, error)
- func (p *Plugin) FetchDefinedStages() []string
Constants ¶
View Source
const ( // StageK8sMultiSync represents the state where // all resources should be synced with the Git state. StageK8sMultiSync = "K8S_MULTI_SYNC" // StageK8sMultiRollback represents the state where all deployed resources should be rollbacked. StageK8sMultiRollback = "K8S_MULTI_ROLLBACK" )
View Source
const ( // StageDescriptionK8sMultiSync represents the description of the K8sSync stage. StageDescriptionK8sMultiSync = "Sync by applying all manifests" // StageDescriptionK8sMultiRollback represents the description of the K8sRollback stage. StageDescriptionK8sMultiRollback = "Rollback the deployment" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
}
Plugin implements the sdk.DeploymentPlugin interface.
func (*Plugin) BuildPipelineSyncStages ¶
func (p *Plugin) BuildPipelineSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildPipelineSyncStagesInput) (*sdk.BuildPipelineSyncStagesResponse, error)
BuildPipelineSyncStages returns the stages for the pipeline sync strategy.
func (*Plugin) BuildQuickSyncStages ¶
func (p *Plugin) BuildQuickSyncStages(ctx context.Context, _ *sdk.ConfigNone, input *sdk.BuildQuickSyncStagesInput) (*sdk.BuildQuickSyncStagesResponse, error)
BuildQuickSyncStages returns the stages for the quick sync strategy.
func (*Plugin) DetermineStrategy ¶
func (p *Plugin) DetermineStrategy(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineStrategyInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.DetermineStrategyResponse, error)
DetermineStrategy determines the strategy for the deployment.
func (*Plugin) DetermineVersions ¶
func (p *Plugin) DetermineVersions(ctx context.Context, _ *sdk.ConfigNone, input *sdk.DetermineVersionsInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.DetermineVersionsResponse, error)
DetermineVersions determines the versions of the application.
func (*Plugin) ExecuteStage ¶
func (p *Plugin) ExecuteStage(ctx context.Context, _ *sdk.ConfigNone, dts []*sdk.DeployTarget[kubeconfig.KubernetesDeployTargetConfig], input *sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]) (*sdk.ExecuteStageResponse, error)
ExecuteStage executes the stage.
func (*Plugin) FetchDefinedStages ¶
FetchDefinedStages returns the defined stages for this plugin.
Click to show internal directories.
Click to hide internal directories.