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
}
Click to show internal directories.
Click to hide internal directories.