objectset

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectByGK

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

func (ObjectByGK) Add

type ObjectByGVK

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

func (ObjectByGVK) Add

type ObjectByKey

type ObjectByKey map[ObjectKey]runtime.Object

func (ObjectByKey) Namespaces

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

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

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

func (*ObjectSet) Contains

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

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

func (*ObjectSet) Len

func (o *ObjectSet) Len() int

func (*ObjectSet) Namespaces

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