Documentation
¶
Index ¶
- type Index
- type InheritIndex
- func (idx *InheritIndex) DeleteLabels(id interface{})
- func (idx *InheritIndex) DeleteParentLabels(parentID string)
- func (idx *InheritIndex) DeleteParentTags(parentID string)
- func (idx *InheritIndex) DeleteSelector(id interface{})
- func (l *InheritIndex) OnUpdate(update api.Update) (filterOut bool)
- func (l *InheritIndex) RegisterWith(allUpdDispatcher *dispatcher.Dispatcher)
- func (idx *InheritIndex) UpdateLabels(id interface{}, labels map[string]string, parents []string)
- func (idx *InheritIndex) UpdateParentLabels(parentID string, labels map[string]string)
- func (idx *InheritIndex) UpdateParentTags(parentID string, Tags []string)
- func (idx *InheritIndex) UpdateSelector(id interface{}, sel selector.Selector)
- type MatchCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index interface { UpdateSelector(id interface{}, sel selector.Selector) DeleteSelector(id interface{}) UpdateLabels(id interface{}, labels map[string]string) DeleteLabels(id interface{}) }
func NewIndex ¶
func NewIndex(onMatchStarted, onMatchStopped MatchCallback) Index
type InheritIndex ¶
type InheritIndex struct {
// contains filtered or unexported fields
}
func NewInheritIndex ¶
func NewInheritIndex(onMatchStarted, onMatchStopped MatchCallback) *InheritIndex
func (*InheritIndex) DeleteLabels ¶
func (idx *InheritIndex) DeleteLabels(id interface{})
func (*InheritIndex) DeleteParentLabels ¶
func (idx *InheritIndex) DeleteParentLabels(parentID string)
func (*InheritIndex) DeleteParentTags ¶
func (idx *InheritIndex) DeleteParentTags(parentID string)
func (*InheritIndex) DeleteSelector ¶
func (idx *InheritIndex) DeleteSelector(id interface{})
func (*InheritIndex) OnUpdate ¶
func (l *InheritIndex) OnUpdate(update api.Update) (filterOut bool)
OnUpdate makes LabelInheritanceIndex compatible with the UpdateHandler interface allowing it to be used in a calculation graph more easily.
func (*InheritIndex) RegisterWith ¶
func (l *InheritIndex) RegisterWith(allUpdDispatcher *dispatcher.Dispatcher)
func (*InheritIndex) UpdateLabels ¶
func (idx *InheritIndex) UpdateLabels(id interface{}, labels map[string]string, parents []string)
func (*InheritIndex) UpdateParentLabels ¶
func (idx *InheritIndex) UpdateParentLabels(parentID string, labels map[string]string)
func (*InheritIndex) UpdateParentTags ¶
func (idx *InheritIndex) UpdateParentTags(parentID string, Tags []string)
func (*InheritIndex) UpdateSelector ¶
func (idx *InheritIndex) UpdateSelector(id interface{}, sel selector.Selector)
type MatchCallback ¶
type MatchCallback func(selId, labelId interface{})
Click to show internal directories.
Click to hide internal directories.