actions

package
v0.0.0-...-a0b04c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

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

func NewActions

func NewActions(config *rest.Config) (*Actions, error)

NewActions get an actions interface

type Custom

type Custom struct {
	CurrentNamespace     string
	GroupVersionResource schema.GroupVersionResource
	// contains filtered or unexported fields
}

Custom struct for custom actions

func NewCustomActions

func NewCustomActions(client dynamic.Interface) *Custom

NewCustomActions return a custom actions

func (*Custom) Create

func (c *Custom) Create(resource *unstructured.Unstructured) error

Create create a custom resource

func (*Custom) Delete

func (c *Custom) Delete(name string) error

Delete delete 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) Namespace

func (c *Custom) Namespace(namespace string) *Custom

Namespace set namespace for custom actions

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

Directories

Path Synopsis
apps
v1
batch
v1
core
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL