kubecli

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCrdCommand

func GetCrdCommand(regx string) []*command.Param

func GetCrdDefinitions

func GetCrdDefinitions(input string, limit int) []*command.Param

func GetCrdGroupVersionResourceWithObject

func GetCrdGroupVersionResourceWithObject(crd runtime.Object) schema.GroupVersionResource

func GetCrdResource

func GetCrdResource(crdGroup, crdVersion, crdName, namespace, namePrefix string, limit int) []*command.Param

func GetCrdThisGroupVersionResource

func GetCrdThisGroupVersionResource() schema.GroupVersionResource

func GetK8sResource added in v0.0.2

func GetK8sResource(group, version, resource, namespace, namePrefix string, limit int) []*command.Param

func GetK8sResourceCommand added in v0.0.2

func GetK8sResourceCommand(regx string) []*command.Param

func GetNamespaces

func GetNamespaces() []*command.Param

func GetPods

func GetPods(namespace, namePrefix string, limit int) []*command.Param

func GetSecretAndBase64Decode added in v0.0.3

func GetSecretAndBase64Decode(namespace, resName string) (map[string]interface{}, error)

func InitKubeClient

func InitKubeClient(kubeconfig string) error

func IsK8sResource added in v0.0.2

func IsK8sResource(group, resource string) bool

func OpenLogsFollowStream

func OpenLogsFollowStream(ctx context.Context, namespace, pod, c string) (io.ReadCloser, error)

Types

type ResourceStatus

type ResourceStatus struct {
	ResName string
	Status  interface{}
}

func SearchCrdResourceStatus

func SearchCrdResourceStatus(namespace, group, version, name string, resName string) []*ResourceStatus

func SearchK8sResourceStatus

func SearchK8sResourceStatus(namespace, group, version, name string, resName string) []*ResourceStatus

type ResourceTree added in v0.0.2

type ResourceTree struct {
	Type   string
	Name   string
	Status string
	Child  []*ResourceTree
}

func GetDaemonSetTree added in v0.0.2

func GetDaemonSetTree(namespace, name string) (*ResourceTree, error)

func GetDeploymentTree added in v0.0.2

func GetDeploymentTree(namespace, name string) (*ResourceTree, error)

func GetJobTree added in v0.0.2

func GetJobTree(namespace, name string) (*ResourceTree, error)

func GetServiceTree added in v0.0.2

func GetServiceTree(namespace, name string) (*ResourceTree, error)

func GetStatefulSetTree added in v0.0.2

func GetStatefulSetTree(namespace, name string) (*ResourceTree, error)

Jump to

Keyboard shortcuts

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