Help us shape the future of Go! Take the 2026 Go Developer Survey

annotations

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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