Documentation ¶
Overview ¶
Package api implements helper functions for manipulating resources in a Kubernetes cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubernetes ¶
type Kubernetes interface { resources.UnstructuredOperations // Helpers returns helpers for the given namespace. If none is specified, "default" is used Helpers(namespace string) helpers.Helpers }
Kubernetes defines an interface that extends kubernetes interface[k8s.io/client-go/kubernetes.Interface] adding generic functions that operate on any kind of object
func NewFromConfig ¶
func NewFromConfig(c KubernetesConfig) (Kubernetes, error)
NewFromConfig returns a Kubernetes instance
type KubernetesConfig ¶
type KubernetesConfig struct { // Context for executing kubernetes operations Context context.Context // kubernetes rest config Config *rest.Config // Client is a pre-configured dynamic client. If provided, the rest config is not used Client dynamic.Interface }
KubernetesConfig defines the configuration for creating a Kubernetes instance
Click to show internal directories.
Click to hide internal directories.