Documentation ¶
Overview ¶
Package lifecycle provides utilities to manipulate lifecycle of resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle []*Stage
Lifecycle is a list of lifecycle stage.
func NewLifecycle ¶
func NewLifecycle(stages []*internalversion.Stage) (Lifecycle, error)
NewLifecycle returns a new Lifecycle.
type Next ¶
type Next struct {
// contains filtered or unexported fields
}
Next represents the next step in the lifecycle
func (*Next) Event ¶
func (n *Next) Event() *internalversion.StageEvent
Event returns the event for the resource
func (*Next) Finalizers ¶
Finalizers returns the finalizers patch
type Patch ¶
type Patch struct { Data []byte Type types.PatchType Subresource string Impersonation *internalversion.ImpersonationConfig }
Patch represents a patch for the resource
type Stage ¶
type Stage struct {
// contains filtered or unexported fields
}
Stage is a resource lifecycle stage manager
func NewStage ¶
func NewStage(s *internalversion.Stage) (*Stage, error)
NewStage returns a new Stage.
func (*Stage) Delay ¶
Delay returns the delay duration of the stage. It's not a constant value, it can be a random value.
func (*Stage) ImmediateNextStage ¶
ImmediateNextStage returns whether the stage is immediate next stage.
Click to show internal directories.
Click to hide internal directories.