itemblock

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemBlock

type ItemBlock struct {
	Log   logrus.FieldLogger
	Items []ItemBlockItem
}

func (*ItemBlock) AddUnstructured

func (ib *ItemBlock) AddUnstructured(gr schema.GroupResource, item *unstructured.Unstructured, preferredGVR schema.GroupVersionResource)

func (*ItemBlock) FindItem

func (ib *ItemBlock) FindItem(gr schema.GroupResource, namespace, name string) []ItemBlockItem

Could return multiple items if EnableAPIGroupVersions is set. The item matching the preferredGVR is returned first

type ItemBlockItem

type ItemBlockItem struct {
	Gr           schema.GroupResource
	Item         *unstructured.Unstructured
	PreferredGVR schema.GroupVersionResource
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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