Documentation ¶
Index ¶
- Constants
- type CpManager
- type DelegateProvider
- func (p *DelegateProvider) AfterCreate(ctx *common.ClusterContext) error
- func (p *DelegateProvider) Name() string
- func (p *DelegateProvider) OnCreate(ctx *common.ClusterContext) error
- func (p *DelegateProvider) OnDelete(ctx *common.ClusterContext) error
- func (p *DelegateProvider) OnUpdate(ctx *common.ClusterContext) error
- func (p *DelegateProvider) PreCreate(ctx *common.ClusterContext) error
- func (p *DelegateProvider) RegisterHandler(mux *mux.PathRecorderMux)
- func (p *DelegateProvider) Validate(ctx *common.ClusterContext) field.ErrorList
- type Handler
- type Provider
Constants ¶
View Source
const ( ReasonFailedProcess = "FailedProcess" ReasonWaitingProcess = "WaitingProcess" ReasonSuccessfulProcess = "SuccessfulProcess" ReasonSkipProcess = "SkipProcess" ConditionTypeDone = "EnsureDone" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpManager ¶
func (*CpManager) GetProvider ¶
GetProvider returns provider by name
func (*CpManager) Providers ¶
Providers returns a sorted list of the names of the registered providers.
func (*CpManager) Register ¶
Register makes a provider available by the provided name. If Register is called twice with the same name or if provider is nil, it panics.
func (*CpManager) RegisterHandler ¶
func (p *CpManager) RegisterHandler(mux *mux.PathRecorderMux)
RegisterHandler register all provider's hanlder.
type DelegateProvider ¶
type DelegateProvider struct { ProviderName string ValidateFunc func(ctx *common.ClusterContext) field.ErrorList PreCreateFunc func(ctx *common.ClusterContext) error AfterCreateFunc func(ctx *common.ClusterContext) error CreateHandlers []Handler DeleteHandlers []Handler UpdateHandlers []Handler }
func (*DelegateProvider) AfterCreate ¶
func (p *DelegateProvider) AfterCreate(ctx *common.ClusterContext) error
func (*DelegateProvider) Name ¶
func (p *DelegateProvider) Name() string
func (*DelegateProvider) OnCreate ¶
func (p *DelegateProvider) OnCreate(ctx *common.ClusterContext) error
func (*DelegateProvider) OnDelete ¶
func (p *DelegateProvider) OnDelete(ctx *common.ClusterContext) error
func (*DelegateProvider) OnUpdate ¶
func (p *DelegateProvider) OnUpdate(ctx *common.ClusterContext) error
func (*DelegateProvider) PreCreate ¶
func (p *DelegateProvider) PreCreate(ctx *common.ClusterContext) error
func (*DelegateProvider) RegisterHandler ¶
func (p *DelegateProvider) RegisterHandler(mux *mux.PathRecorderMux)
func (*DelegateProvider) Validate ¶
func (p *DelegateProvider) Validate(ctx *common.ClusterContext) field.ErrorList
type Handler ¶
type Handler func(ctx *common.ClusterContext) error
type Provider ¶
type Provider interface { Name() string RegisterHandler(mux *mux.PathRecorderMux) Validate(ctx *common.ClusterContext) field.ErrorList PreCreate(ctx *common.ClusterContext) error AfterCreate(ctx *common.ClusterContext) error OnCreate(ctx *common.ClusterContext) error OnUpdate(ctx *common.ClusterContext) error OnDelete(ctx *common.ClusterContext) error }
Provider defines a set of response interfaces for specific cluster types in cluster management.
Click to show internal directories.
Click to hide internal directories.