dynamic

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceGetter

type ResourceGetter interface {
	// ResourceInterface translates an Unstructured object to a ResourceInterface
	// The ResourceInterface can then be used to execute k8s api calls.
	ResourceInterface(obj *unstructured.Unstructured) (dynamic.ResourceInterface, error)
}

ResourceGetter is the interface to returning a Resource

func NewForConfig

func NewForConfig(config *rest.Config) (ResourceGetter, error)

NewForConfig returns a ResourceGetter for a rest config.

func NewUnsafeResourceGetter

func NewUnsafeResourceGetter(client dynamic.Interface) ResourceGetter

NewUnsafeResourceGetter returns a ResourceGetter based on a dynamic client. It is considered unsafe because it makes an assumption on the resource name based on the Kind.

Jump to

Keyboard shortcuts

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