Documentation ¶
Index ¶
- func AddNodeLabel(data models.NodeLabels) (*apiv1.Node, error)
- func ChangeImageDeployment(namespace, name, image string) (*v1.Deployment, error)
- func CreateConfigmap(data models.ConfigmapsJson) (*apiv1.ConfigMap, error)
- func CreateNamespaces(name string) error
- func CreatePvc(data *models.DynamicPVC) (*apiv1.PersistentVolumeClaim, error)
- func CreateSecretWithDockerConfigJson(info DockerConfigJson) (*apiv1.Secret, error)
- func CreateService(info *models.Service) (*apiv1.Service, error)
- func DeleteConfigmaps(namespace, name string) error
- func DeleteDeployment(namespace, name string) error
- func DeleteEvents(namespace, name string) error
- func DeleteJob(namespace, name string) error
- func DeleteNamespaces(name string) error
- func DeleteNode(name string) error
- func DeleteNodeLabel(nodename, key string) (*apiv1.Node, error)
- func DeletePod(namespace, name string) error
- func DeletePv(name string) error
- func DeletePvc(namespace, name string) error
- func DeleteRbac(namespace, name string) error
- func DeleteSecret(namespace, name string) error
- func DeleteSecretWithDockerConfigJson(namespace, username, server string) error
- func DeleteService(namespace, name string) error
- func DeleteServiceAccount(namespace, name string) error
- func DeleteStorageClass(name string) error
- func EncodeBase64(in string) string
- func GetClientSet() (*kubernetes.Clientset, error)
- func GetClientSetAndConfig() (*kubernetes.Clientset, *rest.Config)
- func GetConfigmapsByName(namespace, name string) (*apiv1.ConfigMap, error)
- func GetConfigmapsList() (*apiv1.ConfigMapList, error)
- func GetConfigmapsListByLabels(namespace, labels string) (*apiv1.ConfigMapList, error)
- func GetConfigmapsListByOnlyLabels(labels string) (*apiv1.ConfigMapList, error)
- func GetDeploymentByName(namespace, name string) (*v1.Deployment, error)
- func GetDeploymentList() (*v1.DeploymentList, error)
- func GetDeploymentListByNamespace(namespace string) (*v1.DeploymentList, error)
- func GetEvenstList() (*apiv1.EventList, error)
- func GetEventsByName(namespace, name string) (*apiv1.Event, error)
- func GetEventsByNamespace(namespace string) (*apiv1.EventList, error)
- func GetJobByName(namespace, name string) (*apiv1.Job, error)
- func GetJobList(namespace string) (*apiv1.JobList, error)
- func GetJobListByLabels(namespace, label string) (*apiv1.JobList, error)
- func GetNamespaces() (*apiv1.NamespaceList, error)
- func GetNamespacesByName(name string) (*apiv1.Namespace, error)
- func GetNodeByName(name string) (*apiv1.Node, error)
- func GetNodeList() (*apiv1.NodeList, error)
- func GetPodByName(namespace, name string) (*apiv1.Pod, error)
- func GetPodList() (*apiv1.PodList, error)
- func GetPodListByLabels(namespace, label string) (*apiv1.PodList, error)
- func GetPodListByNamespace(namespace string) (*apiv1.PodList, error)
- func GetPodLogByPodId(namespace, podid string) (string, error)
- func GetPodLogByPodIdAll(namespace, podid string) (string, error)
- func GetPodLogByPodIdByNum(namespace, podid string, num int64) (string, error)
- func GetPvByName(name string) (*apiv1.PersistentVolume, error)
- func GetPvList() (*apiv1.PersistentVolumeList, error)
- func GetPvcByName(namespace, name string) (*apiv1.PersistentVolumeClaim, error)
- func GetPvcList() (*apiv1.PersistentVolumeClaimList, error)
- func GetRbacByName(namespace, name string) (*v1.Role, error)
- func GetRbacList() (*v1.RoleList, error)
- func GetSecretByLables(namespace, labels string) (*apiv1.SecretList, error)
- func GetSecretByName(namespace, name string) (*apiv1.Secret, error)
- func GetSecretList() (*apiv1.SecretList, error)
- func GetServiceAccountByName(namespace, name string) (*apiv1.ServiceAccount, error)
- func GetServiceAccountList() (*apiv1.ServiceAccountList, error)
- func GetServiceByName(namespace, name string) (*apiv1.Service, error)
- func GetServiceList() (*apiv1.ServiceList, error)
- func GetServiceListByNamespace(namespace string) (*apiv1.ServiceList, error)
- func GetStorageClassByName(name string) (*v1.StorageClass, error)
- func GetStorageClassList() (*v1.StorageClassList, error)
- func InitClientSet()
- func Jiami(code string) string
- func MutilDeleteNamespace(name models.Namespaces) error
- func PatchServicePort(info *models.Service) (*apiv1.Service, error)
- func ScaleDeployment(namespace, name string, num int32) (*v1.Deployment, error)
- func UpdateConfigmap(data models.ConfigmapsJson) (*apiv1.ConfigMap, error)
- type DockerConfigJson
- type KubeConfig
- type RemoteCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNodeLabel ¶
func AddNodeLabel(data models.NodeLabels) (*apiv1.Node, error)
func ChangeImageDeployment ¶
func ChangeImageDeployment(namespace, name, image string) (*v1.Deployment, error)
func CreateConfigmap ¶
func CreateConfigmap(data models.ConfigmapsJson) (*apiv1.ConfigMap, error)
func CreateNamespaces ¶
func CreatePvc ¶
func CreatePvc(data *models.DynamicPVC) (*apiv1.PersistentVolumeClaim, error)
func CreateSecretWithDockerConfigJson ¶
func CreateSecretWithDockerConfigJson(info DockerConfigJson) (*apiv1.Secret, error)
func DeleteConfigmaps ¶
func DeleteDeployment ¶
func DeleteEvents ¶
func DeleteNamespaces ¶
func DeleteNode ¶
func DeleteRbac ¶
func DeleteSecret ¶
func DeleteService ¶
func DeleteServiceAccount ¶
func DeleteStorageClass ¶
func GetClientSet ¶
func GetClientSet() (*kubernetes.Clientset, error)
func GetClientSetAndConfig ¶
func GetClientSetAndConfig() (*kubernetes.Clientset, *rest.Config)
func GetConfigmapsByName ¶
func GetConfigmapsList ¶
func GetConfigmapsList() (*apiv1.ConfigMapList, error)
func GetConfigmapsListByLabels ¶
func GetConfigmapsListByLabels(namespace, labels string) (*apiv1.ConfigMapList, error)
func GetConfigmapsListByOnlyLabels ¶
func GetConfigmapsListByOnlyLabels(labels string) (*apiv1.ConfigMapList, error)
func GetDeploymentByName ¶
func GetDeploymentByName(namespace, name string) (*v1.Deployment, error)
func GetDeploymentList ¶
func GetDeploymentList() (*v1.DeploymentList, error)
func GetDeploymentListByNamespace ¶
func GetDeploymentListByNamespace(namespace string) (*v1.DeploymentList, error)
func GetEvenstList ¶
func GetNamespaces ¶
func GetNamespaces() (*apiv1.NamespaceList, error)
func GetNodeList ¶
func GetPodList ¶
func GetPodLogByPodId ¶
func GetPodLogByPodIdAll ¶
func GetPodLogByPodIdByNum ¶
func GetPvByName ¶
func GetPvByName(name string) (*apiv1.PersistentVolume, error)
func GetPvList ¶
func GetPvList() (*apiv1.PersistentVolumeList, error)
func GetPvcByName ¶
func GetPvcByName(namespace, name string) (*apiv1.PersistentVolumeClaim, error)
func GetPvcList ¶
func GetPvcList() (*apiv1.PersistentVolumeClaimList, error)
func GetRbacList ¶
func GetSecretByLables ¶
func GetSecretByLables(namespace, labels string) (*apiv1.SecretList, error)
func GetSecretList ¶
func GetSecretList() (*apiv1.SecretList, error)
func GetServiceAccountByName ¶
func GetServiceAccountByName(namespace, name string) (*apiv1.ServiceAccount, error)
func GetServiceAccountList ¶
func GetServiceAccountList() (*apiv1.ServiceAccountList, error)
func GetServiceList ¶
func GetServiceList() (*apiv1.ServiceList, error)
func GetServiceListByNamespace ¶
func GetServiceListByNamespace(namespace string) (*apiv1.ServiceList, error)
func GetStorageClassByName ¶
func GetStorageClassByName(name string) (*v1.StorageClass, error)
func GetStorageClassList ¶
func GetStorageClassList() (*v1.StorageClassList, error)
func InitClientSet ¶
func InitClientSet()
func MutilDeleteNamespace ¶
func MutilDeleteNamespace(name models.Namespaces) error
func ScaleDeployment ¶
func ScaleDeployment(namespace, name string, num int32) (*v1.Deployment, error)
func UpdateConfigmap ¶
func UpdateConfigmap(data models.ConfigmapsJson) (*apiv1.ConfigMap, error)
Types ¶
type DockerConfigJson ¶
type DockerConfigJson struct { Namespace string `namespace` Name string `name` Password string `password` Server string `server` Annotations map[string]string `annotations` Labels map[string]string `labels` }
func (DockerConfigJson) GetAuth ¶
func (this DockerConfigJson) GetAuth() []byte
{"auths":{"(server)":{"username":"***","password":"***","email":"***","auth":"base64(***)"}}}
type KubeConfig ¶
type KubeConfig struct {
Config string
}
func NewKubeConfig ¶
func NewKubeConfig() *KubeConfig
func (*KubeConfig) GetClientSet ¶
func (this *KubeConfig) GetClientSet() (*kubernetes.Clientset, error)
func (*KubeConfig) GetClientSetInner ¶
func (this *KubeConfig) GetClientSetInner() (*kubernetes.Clientset, error)
Click to show internal directories.
Click to hide internal directories.