Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Namespace returns the client namespace Namespace() string // Config returns the Kubernetes REST client configuration Config() *rest.Config // Clientset returns the client's Clientset Clientset() *kubernetes.Clientset }
Client is a resource client
type Filter ¶
type Filter func(kind metav1.GroupVersionKind, meta metav1.ObjectMeta) (bool, error)
Filter is a resource filter
var NoFilter Filter = func(kind metav1.GroupVersionKind, meta metav1.ObjectMeta) (bool, error) { return true, nil }
NoFilter is a filter that accepts all resources
func NewUIDFilter ¶
NewUIDFilter returns a new filter for the given owner UIDs
type Resource ¶
Resource is a Kubernetes resource
func NewResource ¶
func NewResource(meta metav1.ObjectMeta, kind Kind, client Client) *Resource
NewResource creates a new resource
Click to show internal directories.
Click to hide internal directories.