Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = NewRegistry()
Functions ¶
func Assign ¶
func Assign(hint Hint, spec *Specification)
Types ¶
type ConfigPointer ¶
type Handler ¶
type HandlerSupport ¶
type HandlerSupport[C any, L any, P ConfigPointer[C]] struct { // contains filtered or unexported fields }
HandlerSupport is a basic support for label merge handlers.
func (*HandlerSupport[C, L, P]) Algorithm ¶
func (h *HandlerSupport[C, L, P]) Algorithm() string
func (HandlerSupport[C, L, P]) DecodeConfig ¶
func (h HandlerSupport[C, L, P]) DecodeConfig(data []byte) (Config, error)
func (*HandlerSupport[C, L, P]) Description ¶
func (h *HandlerSupport[C, L, P]) Description() string
type MergeHandlerAssignments ¶
type MergeHandlerAssignments = map[Hint]*Specification
type Registry ¶
type Registry interface { RegisterHandler(h Handler) AssignHandler(hint Hint, spec *Specification) GetHandler(name string) Handler GetAssignment(hint Hint) *Specification GetHandlers() Handlers GetAssignments() MergeHandlerAssignments Copy() Registry }
func NewRegistry ¶
type Specification ¶
type Specification = metav1.MergeAlgorithmSpecification
Click to show internal directories.
Click to hide internal directories.