resource

package
v0.0.0-...-0443994 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceMetadata

type ResourceMetadata struct {
	schema.GroupVersionResource
	schema.GroupVersionKind
	Namespaced   bool
	Unstructured bool
	IsList       bool
}

ResourceMetadata contains information about a given object, including the Group/Version/Kind and the Group/Version/Resource as well as if the object is namespaced

func GetResourceMetadata

func GetResourceMetadata(client client.Client, object client.Object) (ResourceMetadata, error)

GetResourceMetadata returns the ResourceMetadata using the Scheme and RESTMapper embedded in the provided client.

func (ResourceMetadata) Empty

func (o ResourceMetadata) Empty() bool

Empty returns true if the object has not yet been populated

Jump to

Keyboard shortcuts

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