Documentation
¶
Index ¶
- Variables
- func CreateK8sClient() *kubernetes.Clientset
- func EncodeJSON(data any) (string, error)
- func GetNamespaces(Client *clientset.Clientset) []string
- func ListenServe()
- func NewConfig(kubeconfig string) (*rest.Config, error)
- type K8sObj
- func (c *K8sObj) GetConfigMaps(Client *clientset.Clientset, ns string, st bool)
- func (c *K8sObj) GetDeployment(Client *clientset.Clientset, ns string, st bool)
- func (c *K8sObj) GetPVC(Client *clientset.Clientset, ns string, st bool)
- func (c *K8sObj) GetPods(Client *clientset.Clientset, ns string, podState string)
- func (c *K8sObj) GetSecrets(Client *clientset.Clientset, ns string, st bool)
- func (c *K8sObj) GetServices(Client *clientset.Clientset, ns string, st bool)
- type K8sObjMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *clientset.Clientset
Functions ¶
func CreateK8sClient ¶
func CreateK8sClient() *kubernetes.Clientset
func EncodeJSON ¶
func GetNamespaces ¶
Types ¶
type K8sObj ¶
type K8sObj struct { Deployments []appsv1.Deployment `json:"Deployments"` Secrets []v1.Secret `json:"Secrets"` Configmaps []v1.ConfigMap `json:"ConfigMaps"` Services []v1.Service `json:"Services"` Endpoints []v1.Endpoints `json:"Endpoints"` PersistentVolumeClaims []v1.PersistentVolumeClaim `json:"PVCs"` Pods []v1.Pod `json:"Pods"` }
func (*K8sObj) GetConfigMaps ¶
func (*K8sObj) GetDeployment ¶
func (*K8sObj) GetSecrets ¶
type K8sObjMeta ¶
type K8sObjMeta struct {
// contains filtered or unexported fields
}
Struct internally used for comparision
Click to show internal directories.
Click to hide internal directories.