Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶
func Notify(n *database.Notification)
Notify - notify to runtime a ansible callback message
func Register ¶
func Register(name string) chan *database.Notification
Register - register a websocket client for receive notification
func StartOperate ¶
func StartOperate(cluster *database.Cluster, config *LaunchParameters) error
StartOperate - start operate a cluster
Types ¶
type LaunchParameters ¶
type LaunchParameters struct { Operation string `json:"operation"` Components []string `json:"components"` Cluster *database.Cluster `json:"-"` }
LaunchParameters - needed when start operate a cluser
type RunningStatus ¶
type RunningStatus struct { Stages []string `json:"stages"` CurrentStage string `json:"currentStage"` }
RunningStatus - record a cluster running status
func RetrieveStatus ¶
func RetrieveStatus(clusterID string) (*RunningStatus, error)
RetrieveStatus - retrieve a cluster runtime status
Click to show internal directories.
Click to hide internal directories.