annotations

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const KEY_STATE = "key-watches"

Variables

Functions

func Ref

func Ref(cluster string, watch *api.DNSAnnotation) (resources.ClusterObjectKey, error)

Types

type AnnotationState

type AnnotationState struct {
	// contains filtered or unexported fields
}

type Annotations

type Annotations map[string]string

type Handler

type Handler interface {
	ObjectUpdated(key resources.ClusterObjectKey)
}

Handler is used to notify interesting parties about changes of watch state of an object

type ObjectKind

type ObjectKind struct {
	// contains filtered or unexported fields
}

type ObjectState

type ObjectState struct {
	// contains filtered or unexported fields
}

type State

type State struct {
	// contains filtered or unexported fields
}

func GetOrCreateWatches

func GetOrCreateWatches(controller controller.Interface) *State

func NewWatches

func NewWatches() *State

func (*State) Add

func (this *State) Add(logger logger.LogContext, annotation resources.Object) error

func (*State) Get

func (*State) GetInfoFor

func (this *State) GetInfoFor(key resources.ClusterObjectKey) Annotations

func (*State) RegisterHandler

func (this *State) RegisterHandler(log logger.LogContext, gk schema.GroupKind, h Handler)

func (*State) Remove

func (this *State) Remove(logger logger.LogContext, watch resources.ClusterObjectKey)

func (*State) SetActive

func (this *State) SetActive(key resources.ClusterObjectKey, active bool) error

func (*State) UnRegisterHandler

func (this *State) UnRegisterHandler(log logger.LogContext, gk schema.GroupKind, h Handler)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL