objectset

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectByGK added in v0.7.0

type ObjectByGK map[schema.GroupKind]map[ObjectKey]runtime.Object

func (ObjectByGK) Add added in v0.7.0

type ObjectByGVK

type ObjectByGVK map[schema.GroupVersionKind]map[ObjectKey]runtime.Object

func (ObjectByGVK) Add

type ObjectByKey added in v1.0.0

type ObjectByKey map[ObjectKey]runtime.Object

func (ObjectByKey) Namespaces added in v1.0.0

func (o ObjectByKey) Namespaces() []string

type ObjectKey

type ObjectKey struct {
	Name      string
	Namespace string
}

func NewObjectKey

func NewObjectKey(obj v1.Object) ObjectKey

func (ObjectKey) String

func (o ObjectKey) String() string

type ObjectKeyByGVK added in v0.6.0

type ObjectKeyByGVK map[schema.GroupVersionKind][]ObjectKey

type ObjectSet

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

func NewObjectSet

func NewObjectSet(objs ...runtime.Object) *ObjectSet

func (*ObjectSet) Add

func (o *ObjectSet) Add(objs ...runtime.Object) *ObjectSet

func (*ObjectSet) AddErr

func (o *ObjectSet) AddErr(err error)

func (*ObjectSet) All added in v0.3.0

func (o *ObjectSet) All() []runtime.Object

func (*ObjectSet) Contains added in v0.7.0

func (o *ObjectSet) Contains(gk schema.GroupKind, key ObjectKey) bool

func (*ObjectSet) Err

func (o *ObjectSet) Err() error

func (*ObjectSet) GVKOrder

func (o *ObjectSet) GVKOrder(known ...schema.GroupVersionKind) []schema.GroupVersionKind

func (*ObjectSet) GVKs added in v0.6.0

func (o *ObjectSet) GVKs() []schema.GroupVersionKind

func (*ObjectSet) Len

func (o *ObjectSet) Len() int

func (*ObjectSet) Namespaces added in v0.8.9

func (o *ObjectSet) Namespaces() []string

Namespaces all distinct namespaces found on the objects in this set.

func (*ObjectSet) ObjectsByGVK

func (o *ObjectSet) ObjectsByGVK() ObjectByGVK

Jump to

Keyboard shortcuts

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