Documentation ¶
Index ¶
- func Namespace() (string, error)
- func NewAppsV1Client() (*apps.AppsV1Client, error)
- func NewBatchV1beta1Client() (*batch.BatchV1beta1Client, error)
- func NewDynamicClient() (dynamic.Interface, error)
- func ObjectContains(genericObject interface{}, value string) bool
- func ResourceContains(namespace, value string, resource schema.GroupVersionResource) (bool, error)
- func RestConfig() (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppsV1Client ¶
func NewAppsV1Client() (*apps.AppsV1Client, error)
NewAppsV1Client for current kubeconfig
func NewBatchV1beta1Client ¶
func NewBatchV1beta1Client() (*batch.BatchV1beta1Client, error)
NewBatchV1beta1Client creates a new BatchV1beta1Client for the current kubeconfig
func NewDynamicClient ¶
NewDynamicClient creates a new dynamic client
func ObjectContains ¶
ObjectContains evaluates if a Kubernetes object contains a certain string
func ResourceContains ¶
func ResourceContains(namespace, value string, resource schema.GroupVersionResource) (bool, error)
ResourceContains evaluates if a given resource contains a given string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.