Documentation ¶
Index ¶
- type Item
- func NewItem(operation Operation, group, version, kind, namespace, name string) (Item, error)
- func NewItemFromGVKObject(operation Operation, gvk schema.GroupVersionKind, object meta.Object) (Item, error)
- func NewItemFromObject(operation Operation, group, version, kind string, object meta.Object) (Item, error)
- func NewItemFromString(itemString string) (Item, error)
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Operation Operation Group string Version string Kind string Namespace string Name string }
Item defines action in operator
func NewItemFromGVKObject ¶
func NewItemFromGVKObject(operation Operation, gvk schema.GroupVersionKind, object meta.Object) (Item, error)
NewItemFromGVKObject creates new item from Kubernetes Object
func NewItemFromObject ¶
func NewItemFromObject(operation Operation, group, version, kind string, object meta.Object) (Item, error)
NewItemFromObject creates new item from Kubernetes Object
func NewItemFromString ¶
NewItemFromString creates new item from String
Click to show internal directories.
Click to hide internal directories.