Documentation ¶
Index ¶
- func GetCrdCommand(regx string) []*command.Param
- func GetCrdDefinitions(input string, limit int) []*command.Param
- func GetCrdGroupVersionResource(crd *unstructured.Unstructured) schema.GroupVersionResource
- func GetCrdGroupVersionResourceWithObject(crd runtime.Object) schema.GroupVersionResource
- func GetCrdResource(crdGroup, crdVersion, crdName, namespace, namePrefix string, limit int) []*command.Param
- func GetCrdThisGroupVersionResource() schema.GroupVersionResource
- func GetK8sResource(group, version, resource, namespace, namePrefix string, limit int) []*command.Param
- func GetK8sResourceCommand(regx string) []*command.Param
- func GetNamespaces() []*command.Param
- func GetPods(namespace, namePrefix string, limit int) []*command.Param
- func GetSecretAndBase64Decode(namespace, resName string) (map[string]interface{}, error)
- func InitKubeClient(kubeconfig string) error
- func IsK8sResource(group, resource string) bool
- func OpenLogsFollowStream(ctx context.Context, namespace, pod, c string) (io.ReadCloser, error)
- type ResourceStatus
- type ResourceTree
- func GetDaemonSetTree(namespace, name string) (*ResourceTree, error)
- func GetDeploymentTree(namespace, name string) (*ResourceTree, error)
- func GetJobTree(namespace, name string) (*ResourceTree, error)
- func GetServiceTree(namespace, name string) (*ResourceTree, error)
- func GetStatefulSetTree(namespace, name string) (*ResourceTree, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrdCommand ¶
func GetCrdGroupVersionResource ¶
func GetCrdGroupVersionResource(crd *unstructured.Unstructured) schema.GroupVersionResource
func GetCrdGroupVersionResourceWithObject ¶
func GetCrdGroupVersionResourceWithObject(crd runtime.Object) schema.GroupVersionResource
func GetCrdResource ¶
func GetCrdThisGroupVersionResource ¶
func GetCrdThisGroupVersionResource() schema.GroupVersionResource
func GetK8sResource ¶ added in v0.0.2
func GetK8sResourceCommand ¶ added in v0.0.2
func GetNamespaces ¶
func GetSecretAndBase64Decode ¶ added in v0.0.3
func InitKubeClient ¶
func IsK8sResource ¶ added in v0.0.2
func OpenLogsFollowStream ¶
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)
Click to show internal directories.
Click to hide internal directories.