k8s

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllContainerNames

func AllContainerNames(pod *corev1.Pod) string

func FindCastFromMap

func FindCastFromMap(m map[string]interface{}, find string, cast interface{}) (bool, error)

func InitCommandFuncs

func InitCommandFuncs() (map[string]func(map[string]interface{}) ([]byte, error), error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient() (*Client, error)

func NewClient

func NewClient() (*Client, error)

func (*Client) GetK8sClientset

func (c *Client) GetK8sClientset() *kubernetes.Clientset

func (*Client) RawRequest

func (c *Client) RawRequest() *rawRequest

func (*Client) ResourceDelete

func (c *Client) ResourceDelete(gv schema.GroupVersion, resource string, params map[string]interface{}) error

func (*Client) ResourceExec

func (c *Client) ResourceExec(gv schema.GroupVersion, resource string, params map[string]interface{}) (string, error)

func (*Client) ResourceGet

func (c *Client) ResourceGet(gv schema.GroupVersion, resource string, params map[string]interface{}) (string, error)

func (*Client) ResourceList

func (c *Client) ResourceList(gv schema.GroupVersion, resource string, params map[string]interface{}) (string, error)

func (*Client) ResourcePatch

func (c *Client) ResourcePatch(gv schema.GroupVersion, resource string, params map[string]interface{}) (string, error)

func (*Client) ResourceRequest

func (c *Client) ResourceRequest(gv schema.GroupVersion, resource, verb string, args map[string]interface{}) (string, error)

func (*Client) ResourceWatch

func (c *Client) ResourceWatch(gv schema.GroupVersion, resource string, params map[string]interface{}) (watch.Interface, error)

type CommandResult

type CommandResult struct {
	Stdout string `json:"stdout,omitempty"`
	Stderr string `json:"stderr,omitempty"`
	Err    string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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