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