Documentation ¶
Index ¶
- func DetermineStageStatus(sig StopSignalType, ori, got model.StageStatus) model.StageStatus
- func NewStopSignal() (StopSignal, StopSignalHandler)
- type AppLiveResourceLister
- type CommandLister
- type Executor
- type Factory
- type Input
- type LogPersister
- type MetadataStore
- type StopSignal
- type StopSignalHandler
- type StopSignalType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineStageStatus ¶
func DetermineStageStatus(sig StopSignalType, ori, got model.StageStatus) model.StageStatus
func NewStopSignal ¶
func NewStopSignal() (StopSignal, StopSignalHandler)
Types ¶
type AppLiveResourceLister ¶
type CommandLister ¶
type CommandLister interface {
ListCommands() []model.ReportableCommand
}
type Executor ¶
type Executor interface { // Execute starts running executor until completion // or the StopSignal has emitted. Execute(sig StopSignal) model.StageStatus }
type Input ¶
type Input struct { Stage *model.PipelineStage StageConfig config.PipelineStage // Readonly deployment model. Deployment *model.Deployment Application *model.Application PipedConfig *config.PipedSpec TargetDSP deploysource.Provider RunningDSP deploysource.Provider CommandLister CommandLister LogPersister LogPersister MetadataStore MetadataStore AppManifestsCache cache.Cache AppLiveResourceLister AppLiveResourceLister Logger *zap.Logger }
type LogPersister ¶
type MetadataStore ¶
type StopSignal ¶
type StopSignal interface { Context() context.Context Ch() <-chan StopSignalType Signal() StopSignalType Stopped() bool }
type StopSignalHandler ¶
type StopSignalHandler interface { Cancel() Timeout() Terminate() }
type StopSignalType ¶
type StopSignalType string
const ( // StopSignalTerminate means the executor should stop its execution // because the program was asked to terminate. StopSignalTerminate StopSignalType = "terminate" // StopSignalCancel means the executor should stop its execution // because the deployment was cancelled. StopSignalCancel StopSignalType = "cancel" // StopSignalTimeout means the executor should stop its execution // because of timeout. StopSignalTimeout StopSignalType = "timeout" // StopSignalNone means the excutor can be continuously executed. StopSignalNone StopSignalType = "none" )
Click to show internal directories.
Click to hide internal directories.