Documentation
¶
Index ¶
- type ClusterInfo
- type ClusterStatus
- type ComponseInfo
- type Database
- type EtcdCertInfo
- type EtcdConfig
- type FstabLine
- type GatewayNode
- type GlobalConfigs
- type GlobalStatus
- type ImageHub
- type InstallStatus
- type NodeAvailPorts
- type RainbondShareStorage
- type RbdComponent
- type StatusRes
- type Storage
- type StorageOpts
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
NodeAvailPorts []NodeAvailPorts `json:"nodeAvailPorts"`
Storage []Storage `json:"storage"`
EnterpriseID string `json:"enterpriseID"` // enterprise's uuid
InstallID string `json:"installID"` // install uuid
InstallVersion string `json:"installVersion"`
}
ClusterInfo cluster info used for config
type ClusterStatus ¶
type ClusterStatus struct {
FinalStatus GlobalStatus `json:"final_status"`
ClusterInfo ClusterInfo `json:"clusterInfo"`
}
ClusterStatus cluster global status
type ComponseInfo ¶
type ComponseInfo struct {
Name string `json:"name"`
Version string `json:"version"`
Status string `json:"status"`
HealthCount int `json:"healthCount"`
TotalCount int `json:"totalCount"`
Message string `json:"message"`
}
ComponseInfo componse info
type Database ¶
type Database struct {
Host string `json:"host"`
Port int `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
}
Database defines the connection information of database.
type EtcdCertInfo ¶
type EtcdCertInfo struct {
CaFile string `json:"caFile"`
CertFile string `json:"certFile"`
KeyFile string `json:"keyFile"`
}
EtcdCertInfo etcd cert info
type EtcdConfig ¶
type EtcdConfig struct {
// Endpoints is a list of URLs.
Endpoints []string `json:"endpoints"`
// Secret to mount to read certificate files for tls.
CertInfo EtcdCertInfo `json:"certInfo"`
}
EtcdConfig defines the configuration of etcd client.
type FstabLine ¶
type FstabLine struct {
Device string `json:"fileSystem,omitempty"`
MountPoint string `json:"mountPoint,omitempty"`
Type string `json:"type,omitempty"`
Options string `json:"options,omitempty"`
Dump int `json:"dump,omitempty"`
Pass int `json:"pass,omitempty"`
}
FstabLine represents a line in file /etc/fstab.
type GatewayNode ¶
type GatewayNode struct {
NodeName string `json:"nodeName"`
NodeIP string `json:"nodeIP"`
Ports []int `json:"ports"`
}
GatewayNode gateway
type GlobalConfigs ¶
type GlobalConfigs struct {
ImageHub ImageHub `json:"imageHub"`
RegionDatabase Database `json:"regionDatabase"`
UIDatabase Database `json:"uiDatabase"`
EtcdConfig EtcdConfig `json:"etcdConfig"`
GatewayNodes []GatewayNode `json:"gatewayNodes"`
HTTPDomain string `json:"HTTPDomain"`
GatewayIngressIPs []string `json:"gatewayIngressIPs"`
Storage Storage `json:"storage"`
}
GlobalConfigs check result
type GlobalStatus ¶
type GlobalStatus string
const ( // waiting waiting status Waiting GlobalStatus = "Waiting" // Initing initing status Initing GlobalStatus = "Initing" //Setting setting status Setting GlobalStatus = "Setting" //Installing installing status Installing GlobalStatus = "Installing" //Running running status Running GlobalStatus = "Running" //UnInstalling uninstalling status UnInstalling GlobalStatus = "UnInstalling" )
type ImageHub ¶
type ImageHub struct {
Domain string `json:"domain"`
Namespace string `json:"namespace"`
Username string `json:"username"`
Password string `json:"password"`
}
ImageHub image hub
type InstallStatus ¶
type InstallStatus struct {
StepName string `json:"stepName"`
Status string `json:"status"`
Progress int `json:"progress"`
Message string `json:"message"`
Reason string `json:"reason"`
}
InstallStatus install status
type NodeAvailPorts ¶
type NodeAvailPorts struct {
Ports []int `json:"port"`
NodeIP string `json:"nodeIP"`
NodeName string `json:"nodeName"`
}
NodeAvailPorts aval port
type StatusRes ¶
type StatusRes struct {
FinalStatus string `json:"finalStatus"`
StatusList []InstallStatus `json:"statusList"`
}
StatusRes StatusRes
type StorageOpts ¶
StorageOpts storage opts
Click to show internal directories.
Click to hide internal directories.