objectset

package
v0.11.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 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

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) 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) Len

func (o *ObjectSet) Len() int

func (*ObjectSet) ObjectsByGVK

func (o *ObjectSet) ObjectsByGVK() ObjectByGVK

type Set

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

Set is an exceptionally simple `set` implementation for strings. It is not threadsafe, but can be used in place of a simple `map[string]struct{}` as long as you don't want to do too much with it.

func (*Set) Add

func (s *Set) Add(ss ...string)

func (*Set) Values

func (s *Set) Values() []string

Jump to

Keyboard shortcuts

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