Documentation ¶
Index ¶
- Variables
- func CreatCR()
- func CreatVarsCM(subStr string)
- func CreatVarsCMFile(subStr string) string
- func DoCmd(cmd exec.Cmd) (bytes.Buffer, bytes.Buffer)
- func DoErrCmd(cmd exec.Cmd) (bytes.Buffer, bytes.Buffer)
- func FlagParse()
- func GetKuBeanPath() string
- func NewDoCmd(cmd string, args ...string) (bytes.Buffer, bytes.Buffer)
- func RemoteSSHCmdArray(subCmd []string) []string
- func UpdateBackoffLimit(content int, filePath string)
- func UpdateOpsYml(content string, filePath string)
- type KubeanOpsYml
Constants ¶
This section is empty.
Variables ¶
View Source
var Kubeconfig string
View Source
var Vmipaddr string
View Source
var Vmipaddr2 string
Functions ¶
func CreatVarsCM ¶ added in v0.3.0
func CreatVarsCM(subStr string)
func CreatVarsCMFile ¶ added in v0.3.0
func GetKuBeanPath ¶
func GetKuBeanPath() string
func RemoteSSHCmdArray ¶ added in v0.2.6
func UpdateBackoffLimit ¶ added in v0.2.1
func UpdateOpsYml ¶
Types ¶
type KubeanOpsYml ¶
type KubeanOpsYml struct { ApiVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata struct { Name string `yaml:"name"` Labels struct { ClusterName string `yaml:"clusterName"` } } Spec struct { KuBeanCluster string `yaml:"kuBeanCluster"` Image string `yaml:"image"` BackoffLimit int `yaml:"backoffLimit"` ActionType string `yaml:"actionType"` Action string `yaml:"action"` } }
Click to show internal directories.
Click to hide internal directories.