Documentation
¶
Index ¶
- Variables
- func Delta(list instance.Descriptions, listKeyFunc instance.KeyFunc, listParseOp string, ...) (add instance.Descriptions, remove instance.Descriptions)
- func NewController(scope scope.Scope, options enrollment.Options) controller.Controller
- func NewTypedControllers(scope scope.Scope, options enrollment.Options) func() (map[string]controller.Controller, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultOptions return an Options with default values filled in. DefaultOptions = enrollment.Options{ SyncInterval: types.Duration(5 * time.Second), DestroyOnTerminate: false, SourceParseErrPolicy: enrollment.SourceParseErrorEnableDestroy, EnrollmentParseErrPolicy: enrollment.EnrolledParseErrorEnableProvision, } )
Functions ¶
func Delta ¶
func Delta(list instance.Descriptions, listKeyFunc instance.KeyFunc, listParseOp string, other instance.Descriptions, otherKeyFunc instance.KeyFunc, otherParseOp string) (add instance.Descriptions, remove instance.Descriptions)
Delta computes the changes necessary to make the list match other: 1. the add Descriptions are entries to add to other 2. the remove Descriptions are entries to remove from other
func NewController ¶
func NewController(scope scope.Scope, options enrollment.Options) controller.Controller
NewController returns a controller implementation
func NewTypedControllers ¶
func NewTypedControllers(scope scope.Scope, options enrollment.Options) func() (map[string]controller.Controller, error)
NewTypedControllers return typed controllers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.