Documentation ¶
Index ¶
- func FigureStdout(stdout string, columns map[string][]interface{}) (result []map[string]interface{}, err error)
- func GenerateOCLoginCMD(server string, username string, password string, clusterid string, ...) string
- func OcLogin(ocLoginAtter OcAttributes) (string, error)
- func RestartMUOPods(connection *client.Connection, clusterID string) error
- func RetryCMDRun(cmd string, timeout time.Duration) (string, error)
- func WaitClusterUpgradeFinished(connection *client.Connection, clusterID string) error
- func WaitForOperatorsToBeReady(connection *client.Connection, clusterID string, timeout int) error
- func WaitForUpgradePolicyToState(connection *client.Connection, clusterID string, policyID string, state string, ...) error
- type Console
- type OcAttributes
- type Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FigureStdout ¶ added in v1.5.1
func FigureStdout(stdout string, columns map[string][]interface{}) (result []map[string]interface{}, err error)
will return [map["NAME":"ip-10-0-130-210.us-east-2.compute.internal","STATUS":"Ready","ROLES":"worker"...]]
func GenerateOCLoginCMD ¶
func OcLogin ¶
func OcLogin(ocLoginAtter OcAttributes) (string, error)
func RestartMUOPods ¶ added in v1.5.1
func RestartMUOPods(connection *client.Connection, clusterID string) error
func WaitClusterUpgradeFinished ¶ added in v1.5.1
func WaitClusterUpgradeFinished(connection *client.Connection, clusterID string) error
func WaitForOperatorsToBeReady ¶ added in v1.5.1
func WaitForOperatorsToBeReady(connection *client.Connection, clusterID string, timeout int) error
func WaitForUpgradePolicyToState ¶ added in v1.5.1
func WaitForUpgradePolicyToState(connection *client.Connection, clusterID string, policyID string, state string, timeout int) error
WaitForUpgradePolicyToState will time out after <timeout> minutes Be careful for state completed. Make sure the automatic policy is in status of other status rather than pending
Types ¶
type Console ¶ added in v1.5.0
Console is openshift webconsole struct
func NewConsole ¶ added in v1.5.0
func NewConsole(clusterID string, connection *client.Connection) (console *Console, err error)
NewConsole need clusterID and connection passed. Will return the console with login=true
func (*Console) GetClusterVersion ¶ added in v1.5.1
GetClusterVersion will return the Cluster version
func (*Console) GetPods ¶ added in v1.5.1
GetPods function will return list of *Pod with informations If namespace passed as parameter, will return the pod list of the specified namespace
func (*Console) IsConfiged ¶ added in v1.5.0
IsConfiged will return whether the config file of the console is existed