Documentation ¶
Index ¶
- func Delta(list instance.Descriptions, listKeyFunc keyFunc, other instance.Descriptions, ...) (add instance.Descriptions, remove instance.Descriptions, ...)
- func Difference(list instance.Descriptions, listKeyFunc keyFunc, other instance.Descriptions, ...) instance.Descriptions
- func NewController(plugins func() discovery.Plugins, leader manager.Leadership, ...) controller.Controller
- func NewTypedControllers(plugins func() discovery.Plugins, leader manager.Leadership, ...) func() (map[string]controller.Controller, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delta ¶
func Delta(list instance.Descriptions, listKeyFunc keyFunc, other instance.Descriptions, otherKeyFunc keyFunc) (add instance.Descriptions, remove instance.Descriptions, changes [][2]instance.Description)
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 3. changes are a slice of Descriptions where changes[x][0] is the original, and changes[x][1] is new
func Difference ¶
func Difference(list instance.Descriptions, listKeyFunc keyFunc, other instance.Descriptions, otherKeyFunc keyFunc) instance.Descriptions
Difference returns a list of specs that is not in the receiver.
func NewController ¶
func NewController(plugins func() discovery.Plugins, leader manager.Leadership, options enrollment.Options) controller.Controller
NewController returns a controller implementation
func NewTypedControllers ¶
func NewTypedControllers(plugins func() discovery.Plugins, leader manager.Leadership, 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.