objectset

package
v0.0.0-...-e9169e4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 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]kclient.Object

func (ObjectByGK) Add

type ObjectByGVK

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

func (ObjectByGVK) Add

type ObjectByKey

type ObjectByKey map[ObjectKey]kclient.Object

func (ObjectByKey) Namespaces

func (o ObjectByKey) Namespaces() []string

type ObjectKey

type ObjectKey struct {
	Name      string
	Namespace string
}

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(scheme *runtime.Scheme, objs ...kclient.Object) (*ObjectSet, error)

func (*ObjectSet) Add

func (o *ObjectSet) Add(objs ...kclient.Object) error

func (*ObjectSet) All

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

func (*ObjectSet) Contains

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

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