Documentation
¶
Index ¶
- Constants
- func Diff[T interface{}](spec, status *T) (specData, statusData, diff string, outErr error)
- type Checksum
- type Func
- type FuncGen
- type FuncGenP0
- type FuncGenP2
- type GenP0
- type GenP2
- type Mode
- func Evaluate(builder api.ActionBuilder, f ...Func) (mode Mode, plan api.Plan, err error)
- func P0[T interface{}](log logging.Logger, actionBuilder api.ActionBuilder, checksum Checksum[T], ...) (mode Mode, plan api.Plan, err error)
- func P2[T interface{}, P1, P2 interface{}](log logging.Logger, p1 P1, p2 P2, actionBuilder api.ActionBuilder, ...) (mode Mode, plan api.Plan, err error)
- type SubElementExtractor
- type Template
Constants ¶
View Source
const ( SkippedRotationString = "Skipped" SilentRotationString = "Silent" InPlaceRotationString = "InPlace" GracefulRotationString = "Graceful" EnforcedRotationString = "EnforcedSkipped" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FuncGenP0 ¶
func NewFuncGenP0 ¶
func NewFuncGenP0[T interface{}](spec, status *T) FuncGenP0[T]
type FuncGenP2 ¶
func NewFuncGenP2 ¶
func NewFuncGenP2[T, P1, P2 interface{}](p1 P1, p2 P2, spec, status *T) FuncGenP2[T, P1, P2]
type GenP2 ¶
type GenP2[T, P1, P2 interface{}] func(p1 P1, p2 P2, spec, status *T) Func
func ArrayExtractorP2 ¶
func SubElementsP2 ¶
func SubElementsP2[T1, T2, P1, P2 interface{}](extractor SubElementExtractor[T1, T2], gens ...GenP2[T2, P1, P2]) GenP2[T1, P1, P2]
type Mode ¶
type Mode int
const ( // SkippedRotation Skips the rotation. Returned plan is ignored SkippedRotation Mode = iota // SilentRotation Propagates changes without a restart. Returned plan is executed in High actions SilentRotation // InPlaceRotation Silently accept changes without a restart. Returned plan is executed in Normal actions InPlaceRotation // GracefulRotation Schedule pod restart. Returned plan is ignored GracefulRotation // EnforcedRotation Enforce pod restart. Returned plan is ignored EnforcedRotation )
func P0 ¶
func P0[T interface{}]( log logging.Logger, actionBuilder api.ActionBuilder, checksum Checksum[T], spec, status Template[T], evaluators ...GenP0[T]) (mode Mode, plan api.Plan, err error)
P0 runs compare of the provided templates without generic parameters
func P2 ¶
func P2[T interface{}, P1, P2 interface{}]( log logging.Logger, p1 P1, p2 P2, actionBuilder api.ActionBuilder, checksum Checksum[T], spec, status Template[T], evaluators ...GenP2[T, P1, P2]) (mode Mode, plan api.Plan, err error)
P2 runs compare of the provided templates with 2 generic parameters
type SubElementExtractor ¶
type SubElementExtractor[T1, T2 interface{}] func(in *T1) *T2
Click to show internal directories.
Click to hide internal directories.