Documentation
¶
Index ¶
- func Namespace() (string, error)
- func NewCoreV1Client() (*core.CoreV1Client, error)
- func NewDynamicClient() (dynamic.Interface, error)
- func ObjectContains(genericObject interface{}, value string) bool
- func RestConfig() (*rest.Config, error)
- func UnstructuredListContains(unstructuredList *unstructured.UnstructuredList, value string) bool
- type Kubernetes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCoreV1Client ¶ added in v0.6.0
func NewCoreV1Client() (*core.CoreV1Client, error)
NewCoreV1Client creates a new dynamic client
func NewDynamicClient ¶
NewDynamicClient creates a new dynamic client
func ObjectContains ¶
ObjectContains evaluates if a Kubernetes object contains a certain string
func UnstructuredListContains ¶ added in v0.7.2
func UnstructuredListContains(unstructuredList *unstructured.UnstructuredList, value string) bool
Types ¶
type Kubernetes ¶
type Kubernetes interface {
ResourceContains(ctx context.Context, namespace, value string, resource schema.GroupVersionResource) (bool, error)
}
Kubernetes defines the interface to interact with K8s
Click to show internal directories.
Click to hide internal directories.