Documentation ¶
Overview ¶
* Copyright 2019-2021 VMware, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright 2019-2021 VMware, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
* Copyright 2019-2021 VMware, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
Index ¶
- Variables
- func CheckClusterInfoStatus(ClusterInfoStatus map[string]interface{}) bool
- func CheckClusterStatus(ClusterStatus map[string]string) bool
- func CheckJobReadiness(namespace, jobName string) (bool, error)
- func CheckNamespace(namespace string) error
- func CheckStatus(status string) bool
- func CreateNamespace(namespace string) error
- func Debug(format string, v ...interface{})
- func GetChartPath(name string) string
- func GetClusterDeployStatus(name, namespace string) (map[string]string, error)
- func GetClusterInfo(name, namespace string) (map[string]interface{}, error)
- func GetClusterPodStatus(name, namespace string) (map[string]string, error)
- func GetClusterServiceStatus(name, namespace string) (map[string]string, error)
- func GetClusterStsStatus(name, namespace string) (map[string]string, error)
- func GetDeployList(clusterName, namespace string) (*v1.DeploymentList, error)
- func GetDeployStatus(deploy *v1.Deployment) (string, string)
- func GetDeploymentStatus(deploys *v1.DeploymentList) (map[string]string, error)
- func GetIngressURLList(name, namespace string) ([]string, error)
- func GetLogs(args *LogChanArgs) (*bytes.Buffer, error)
- func GetNamespaces() ([]v1.Namespace, error)
- func GetNodeIP() ([]string, error)
- func GetPodContainersStatus(ClusterName, namespace string) (map[string]string, error)
- func GetPodList(name, namespace string) ([]string, error)
- func GetPodNameByModule(namespace, name, modules string) (string, error)
- func GetPodStatus(pods *corev1.PodList) map[string]string
- func GetProxySvcNodePorts(name, namespace string) (int32, error)
- func GetServiceStatus(Services *v1.ServiceList) map[string]string
- func GetSettings(namespace string) (*cli.EnvSettings, error)
- func GetStsList(clusterName, namespace string) (*v1.StatefulSetList, error)
- func GetStsStatus(sts *v1.StatefulSet) (string, string)
- func GetStssStatus(stss *v1.StatefulSetList) (map[string]string, error)
- func MapToConfig(m map[string]interface{}, templates string) (string, error)
- func RepoAddAndUpdate() error
- func WriteLog(w *websocket.Conn, args *LogChanArgs) (err error)
- type Chart
- type LogChanArgs
- type Value
Constants ¶
This section is empty.
Variables ¶
var EnvCs sync.Mutex
var KubeClient kubeClient = &kube.KUBE
Functions ¶
func CheckClusterInfoStatus ¶
CheckClusterStatus CheckClusterStatus
func CheckClusterStatus ¶
CheckClusterStatus CheckClusterStatus
func CheckJobReadiness ¶
func CheckStatus ¶
func GetChartPath ¶
func GetClusterDeployStatus ¶
GetClusterDeployStatus GetClusterDeployStatus
func GetClusterInfo ¶
GetClusterInfo GetClusterInfo
func GetClusterPodStatus ¶
GetClusterPodStatus GetClusterPodStatus
func GetClusterServiceStatus ¶
GetClusterServiceStatus func
func GetClusterStsStatus ¶
GetClusterStsStatus gets all the statefulSet related information with the cluster name and namespace
func GetDeployList ¶
func GetDeployList(clusterName, namespace string) (*v1.DeploymentList, error)
GetDeployList GetDeployList
func GetDeployStatus ¶
func GetDeployStatus(deploy *v1.Deployment) (string, string)
GetDeployStatus GetDeployStatus
func GetDeploymentStatus ¶
func GetDeploymentStatus(deploys *v1.DeploymentList) (map[string]string, error)
func GetIngressURLList ¶
GetIngressURLList is Get Ingress Url list
func GetPodContainersStatus ¶
GetPodContainersStatus GetPodContainersStatus
func GetPodNameByModule ¶
GetPodNameByModule is Get Pod By Module
func GetPodStatus ¶
GetPodStatus GetPodStatus
func GetProxySvcNodePorts ¶
GetProxySvcNodePorts return rollsite svc NodePort
func GetServiceStatus ¶
func GetServiceStatus(Services *v1.ServiceList) map[string]string
GetServiceStatus func
func GetSettings ¶
func GetSettings(namespace string) (*cli.EnvSettings, error)
func GetStsList ¶
func GetStsList(clusterName, namespace string) (*v1.StatefulSetList, error)
GetStsList gets the statefulSets list under the namespace
func GetStsStatus ¶
func GetStsStatus(sts *v1.StatefulSet) (string, string)
GetStsStatus gets the status if a certain statefulSet
func GetStssStatus ¶
func GetStssStatus(stss *v1.StatefulSetList) (map[string]string, error)
GetStssStatus gets the status of a list of statefulSets
func RepoAddAndUpdate ¶
func RepoAddAndUpdate() error