model

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreV1

type CoreV1 struct {
}

func (*CoreV1) Namespaces

func (g *CoreV1) Namespaces() (*v1.NamespaceList, error)

func (*CoreV1) Nodes

func (g *CoreV1) Nodes() (*v1.NodeList, error)

func (*CoreV1) RestClient

func (g *CoreV1) RestClient() *kubernetes.Clientset

type GetGVR

type GetGVR struct {
	Group     string                     `json:"group"`
	Version   string                     `json:"version"`
	Resource  string                     `json:"resource"`
	Namespace string                     `json:"namespace"`
	Name      string                     `json:"name"`
	Data      *unstructured.Unstructured `json:"data"`
	PatchData string                     `json:"patchdata"`
}

func (*GetGVR) Delete

func (g *GetGVR) Delete() error

func (*GetGVR) Get

func (g *GetGVR) Get() (data *unstructured.Unstructured, err error)

func (*GetGVR) GetStruct

func (g *GetGVR) GetStruct() schema.GroupVersionResource

func (*GetGVR) List

func (g *GetGVR) List() (list *unstructured.UnstructuredList, err error)

func (*GetGVR) Patch

func (g *GetGVR) Patch() (*unstructured.Unstructured, error)

func (*GetGVR) Post

func (g *GetGVR) Post() (*unstructured.Unstructured, error)

func (*GetGVR) Put

func (g *GetGVR) Put() (*unstructured.Unstructured, error)

Jump to

Keyboard shortcuts

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