Documentation ¶
Index ¶
- type Actions
- type Custom
- func (c *Custom) Create(resource *unstructured.Unstructured) error
- func (c *Custom) Delete(name string) error
- func (c *Custom) Get(name string) (*unstructured.Unstructured, error)
- func (c *Custom) List() (*unstructured.UnstructuredList, error)
- func (c *Custom) Namespace(namespace string) *Custom
- func (c *Custom) SetGroupVersionResource(resource schema.GroupVersionResource) *Custom
- func (c *Custom) Update(resource *unstructured.Unstructured) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct { Custom *Custom CoreV1 *actionsCoreV1.CoreV1 BatchV1 *actionsBatchV1.BatchV1 AppsV1 *actionsAppsV1.AppsV1 // contains filtered or unexported fields }
Actions kubernetes actions
func GetActionFilled ¶
func GetActionFilled(clientSet kubernetes.Interface, dynamicClient dynamic.Interface, config *rest.Config) *Actions
GetActionFilled return an action from dynamic client
type Custom ¶
type Custom struct { CurrentNamespace string GroupVersionResource schema.GroupVersionResource // contains filtered or unexported fields }
Custom struct for custom actions
func NewCustomActions ¶
NewCustomActions return a custom actions
func (*Custom) Create ¶
func (c *Custom) Create(resource *unstructured.Unstructured) error
Create create a custom resource
func (*Custom) Get ¶
func (c *Custom) Get(name string) (*unstructured.Unstructured, error)
Get get custom resource
func (*Custom) List ¶
func (c *Custom) List() (*unstructured.UnstructuredList, error)
List get list of custom resources
func (*Custom) SetGroupVersionResource ¶
func (c *Custom) SetGroupVersionResource(resource schema.GroupVersionResource) *Custom
SetGroupVersionResource set GroupVersionResource for this actions
func (*Custom) Update ¶
func (c *Custom) Update(resource *unstructured.Unstructured) error
Update update a custome resource
Click to show internal directories.
Click to hide internal directories.