Documentation ¶
Index ¶
- Constants
- type DelegateProvider
- func (p *DelegateProvider) AfterCreate(machine *devopsv1.Machine) error
- func (p *DelegateProvider) Name() string
- func (p *DelegateProvider) OnCreate(ctx *common.ClusterContext, machine *devopsv1.Machine) error
- func (p *DelegateProvider) OnDelete(ctx *common.ClusterContext, machine *devopsv1.Machine) error
- func (p *DelegateProvider) OnUpdate(ctx *common.ClusterContext, machine *devopsv1.Machine) error
- func (p *DelegateProvider) PreCreate(machine *devopsv1.Machine) error
- func (p *DelegateProvider) Validate(machine *devopsv1.Machine) field.ErrorList
- type Handler
- type MpManager
- type Provider
Constants ¶
View Source
const ( ReasonWaiting = "Waiting" ReasonSkip = "Skip" ReasonFailedInit = "FailedInit" ReasonFailedUpdate = "FailedUpdate" ReasonFailedDelete = "FailedDelete" ConditionTypeDone = "EnsureDone" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateProvider ¶
type DelegateProvider struct { ProviderName string ValidateFunc func(machine *devopsv1.Machine) field.ErrorList PreCreateFunc func(machine *devopsv1.Machine) error AfterCreateFunc func(machine *devopsv1.Machine) error CreateHandlers []Handler DeleteHandlers []Handler UpdateHandlers []Handler }
func (*DelegateProvider) AfterCreate ¶
func (p *DelegateProvider) AfterCreate(machine *devopsv1.Machine) error
func (*DelegateProvider) Name ¶
func (p *DelegateProvider) Name() string
func (*DelegateProvider) OnCreate ¶
func (p *DelegateProvider) OnCreate(ctx *common.ClusterContext, machine *devopsv1.Machine) error
func (*DelegateProvider) OnDelete ¶
func (p *DelegateProvider) OnDelete(ctx *common.ClusterContext, machine *devopsv1.Machine) error
func (*DelegateProvider) OnUpdate ¶
func (p *DelegateProvider) OnUpdate(ctx *common.ClusterContext, machine *devopsv1.Machine) error
type MpManager ¶
func (*MpManager) GetProvider ¶
GetProvider returns provider by name
type Provider ¶
type Provider interface { Name() string Validate(machine *devopsv1.Machine) field.ErrorList PreCreate(machine *devopsv1.Machine) error AfterCreate(machine *devopsv1.Machine) error OnCreate(ctx *common.ClusterContext, machine *devopsv1.Machine) error OnUpdate(ctx *common.ClusterContext, machine *devopsv1.Machine) error OnDelete(ctx *common.ClusterContext, machine *devopsv1.Machine) error }
Provider defines a set of response interfaces for specific machine types in machine management.
Click to show internal directories.
Click to hide internal directories.