resourceclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(apiVersion string, kind string, name string, namespace string) (metav1.Object, error)
}

Client provides methods for retrieving arbitrary Kubernetes resources, returned as generalised metav1.Object, which can be converted to concrete types, and allows for retrieving common and shared data (namespaces, names etc.)

type UnstructuredClient

type UnstructuredClient struct {
	Dynamic               dynamic.Interface
	UnstructuredConverter runtime.UnstructuredConverter
}

UnstructuredClient is an implementation of the arbitrary resource client that uses a dynamic Kubernetes interface, retrieving unstructured k8s objects and converting them to metav1.Object

func (*UnstructuredClient) Get

func (u *UnstructuredClient) Get(apiVersion string, kind string, name string, namespace string) (metav1.Object, error)

Get takes descriptors of a Kubernetes object (api version, kind, name, namespace) and fetches the matching object, returning it as a metav1.Object

Jump to

Keyboard shortcuts

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