Documentation
¶
Index ¶
- Constants
- type AssertsResource
- type Auth
- type Basic
- type Business
- type Cert
- type ClusterProgress
- type ClusterProgressStatus
- type Config
- type CreateClusterPara
- type ESMonitor
- type ExternalInfluxDBMonitor
- type Gateway
- type HA
- type InfluxDBMonitor
- type Keepalived
- type LocalInfluxDBMonitor
- type Monitor
- type OIDCAuth
- type Registry
- type SSH
- type SSHResource
- type SelfSignedCert
- type TKE
- func (t *TKE) GetClientset(name string, dnsDomain string) (tkeclientset.Interface, error)
- func (t *TKE) Run()
- func (t *TKE) SetClusterDefault(cluster *platformv1.Cluster, config *Config)
- func (t *TKE) SetConfigDefault(config *Config)
- func (t *TKE) ValidateCertAndKey(certificate []byte, privateKey []byte, dnsNames []string) *errors.StatusError
- func (t *TKE) ValidateConfig(config Config) *errors.StatusError
- func (t *TKE) WebService() *restful.WebService
- type TKEAuth
- type TKEHA
- type TKERegistry
- type ThirdPartyCert
- type ThirdPartyHA
- type ThirdPartyRegistry
Constants ¶
const ( StatusUnknown = "Unknown" StatusDoing = "Doing" StatusSuccess = "Success" StatusFailed = "Failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertsResource ¶
type AssertsResource struct { }
AssertsResource is the REST layer
func NewAssertsResource ¶
func NewAssertsResource() *AssertsResource
NewAssertsResource create a AssertsResource
func (*AssertsResource) WebService ¶
func (c *AssertsResource) WebService() *restful.WebService
WebService creates a new service that can handle REST requests for AssertsResource
type Cert ¶
type Cert struct { SelfSignedCert *SelfSignedCert `json:"selfSigned,omitempty"` ThirdPartyCert *ThirdPartyCert `json:"thirdParty,omitempty"` }
type ClusterProgress ¶
type ClusterProgress struct { Status ClusterProgressStatus `json:"status"` Data string `json:"data"` URL string `json:"url,omitempty"` Username string `json:"username,omitempty"` Password []byte `json:"password,omitempty"` CACert []byte `json:"caCert,omitempty"` Hosts []string `json:"hosts,omitempty"` Servers []string `json:"servers,omitempty"` Kubeconfig []byte `json:"kubeconfig,omitempty"` }
ClusterProgress use for findClusterProgress
type ClusterProgressStatus ¶
type ClusterProgressStatus string
ClusterProgressStatus use for ClusterProgress
type Config ¶
type Config struct { Basic *Basic `json:"basic"` Auth Auth `json:"auth"` Registry Registry `json:"registry"` Business *Business `json:"business,omitempty"` Monitor *Monitor `json:"monitor,omitempty"` HA *HA `json:"ha,omitempty"` Gateway *Gateway `json:"gateway,omitempty"` }
Config is the installer config
type CreateClusterPara ¶
type CreateClusterPara struct { Cluster platformv1.Cluster `json:"cluster"` Config Config `json:"Config"` }
CreateClusterPara for create cluster parameter
type ExternalInfluxDBMonitor ¶
type HA ¶
type HA struct { TKEHA *TKEHA `json:"tke,omitempty"` ThirdPartyHA *ThirdPartyHA `json:"thirdParty,omitempty"` }
type InfluxDBMonitor ¶
type InfluxDBMonitor struct { LocalInfluxDBMonitor *LocalInfluxDBMonitor `json:"local,omitempty"` ExternalInfluxDBMonitor *ExternalInfluxDBMonitor `json:"external,omitempty"` }
type Keepalived ¶
type Keepalived struct {
VIP string `json:"vip,omitempty"`
}
type LocalInfluxDBMonitor ¶
type LocalInfluxDBMonitor struct { }
type Monitor ¶
type Monitor struct { ESMonitor *ESMonitor `json:"es,omitempty"` InfluxDBMonitor *InfluxDBMonitor `json:"influxDB,omitempty"` }
type Registry ¶
type Registry struct { TKERegistry *TKERegistry `json:"tke,omitempty"` ThirdPartyRegistry *ThirdPartyRegistry `json:"thirdParty,omitempty"` }
Registry for remote registry
func (*Registry) UseDevRegistry ¶
type SSHResource ¶
type SSHResource struct { }
SSHResource is the REST layer to the Cluster domain
func (*SSHResource) WebService ¶
func (c *SSHResource) WebService() *restful.WebService
WebService creates a new service that can handle REST requests for SSHResource.
type SelfSignedCert ¶
type SelfSignedCert struct { }
type TKE ¶
type TKE struct { Config *config.Config `json:"config"` Para *CreateClusterPara `json:"para"` Cluster *clusterprovider.Cluster `json:"cluster"` Step int `json:"step"` // contains filtered or unexported fields }
ClusterResource is the REST layer to the Cluster domain
func (*TKE) GetClientset ¶
GetClientset return the clientset of component
func (*TKE) SetClusterDefault ¶
func (t *TKE) SetClusterDefault(cluster *platformv1.Cluster, config *Config)
func (*TKE) SetConfigDefault ¶
func (*TKE) ValidateCertAndKey ¶
func (*TKE) ValidateConfig ¶
func (t *TKE) ValidateConfig(config Config) *errors.StatusError
func (*TKE) WebService ¶
func (t *TKE) WebService() *restful.WebService
WebService creates a new service that can handle REST requests for ClusterResource.