Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterBean ¶
type ClusterBean struct {
Id int `json:"id" validate:"number"`
ClusterName string `json:"cluster_name,omitempty" validate:"required"`
Description string `json:"description"`
ServerUrl string `json:"server_url,omitempty" validate:"url,required"`
PrometheusUrl string `json:"prometheus_url,omitempty" validate:"validate-non-empty-url"`
Active bool `json:"active"`
Config map[string]string `json:"config,omitempty"`
PrometheusAuth *PrometheusAuth `json:"prometheusAuth,omitempty"`
DefaultClusterComponent []*DefaultClusterComponent `json:"defaultClusterComponent"`
AgentInstallationStage int `json:"agentInstallationStage,notnull"` // -1=external, 0=not triggered, 1=progressing, 2=success, 3=fails
K8sVersion string `json:"k8sVersion"`
HasConfigOrUrlChanged bool `json:"-"`
UserName string `json:"userName,omitempty"`
InsecureSkipTLSVerify bool `json:"insecureSkipTlsVerify"`
ErrorInConnecting string `json:"errorInConnecting"`
IsCdArgoSetup bool `json:"isCdArgoSetup"`
IsVirtualCluster bool `json:"isVirtualCluster"`
ClusterUpdated bool `json:"clusterUpdated"`
IsProd bool `json:"isProd"`
}
func (ClusterBean) GetClusterConfig ¶
func (bean ClusterBean) GetClusterConfig() *k8s.ClusterConfig
type DefaultClusterComponent ¶
type Kubeconfig ¶
type Kubeconfig struct {
Config string `json:"config"`
}
type PrometheusAuth ¶
type UserClusterBeanMapping ¶
type UserClusterBeanMapping struct {
Mapping map[string]*ClusterBean `json:"mapping"`
}
type ValidateClusterBean ¶
type ValidateClusterBean struct {
UserInfos map[string]*UserInfo `json:"userInfos,omitempty""`
*ClusterBean
}
Click to show internal directories.
Click to hide internal directories.