Documentation
¶
Index ¶
- Variables
- func CallBackCmd(opt types.OperatorType, optParam interface{}, pkgServer string) string
- func CniK8sverRuntimeCmdParam(node []execute.ClusterNodes) string
- func EtcdCmdParam(node []execute.ClusterNodes) string
- func InitNodeDownloadPkgCmd(nodes []execute.ClusterNodes) string
- type Actuator
- func (a *Actuator) EtcdDownloadPkg() bool
- func (a Actuator) EtcdInstall() bool
- func (a *Actuator) K8sDownloadPkgAndInstallInitMaster() bool
- func (a *Actuator) K8sJoinOtherMastersAndWorkers() bool
- func (a *Actuator) K8sRemoveNodes() bool
- func (a *Actuator) K8sResetNodes() bool
- func (a *Actuator) K8sScaleNodes() bool
- func (a *Actuator) SSHAuth() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterName = os.Getenv("PWC_NAME")
View Source
var (
DownloadPkgTimeout = time.Duration(timeout) * time.Second
)
Functions ¶
func CallBackCmd ¶
func CallBackCmd(opt types.OperatorType, optParam interface{}, pkgServer string) string
func CniK8sverRuntimeCmdParam ¶
func CniK8sverRuntimeCmdParam(node []execute.ClusterNodes) string
func EtcdCmdParam ¶
func EtcdCmdParam(node []execute.ClusterNodes) string
func InitNodeDownloadPkgCmd ¶
func InitNodeDownloadPkgCmd(nodes []execute.ClusterNodes) string
Types ¶
type Actuator ¶
type Actuator struct { Agent provider.Agent Nodes []execute.ClusterNodes Env types.Env Concurrent *execute.Concurrent }
func NewActuator ¶
func (*Actuator) EtcdDownloadPkg ¶
func (Actuator) EtcdInstall ¶
func (*Actuator) K8sDownloadPkgAndInstallInitMaster ¶
func (*Actuator) K8sJoinOtherMastersAndWorkers ¶
func (*Actuator) K8sRemoveNodes ¶
需要考虑某个节点既是master又是worker的情况
func (*Actuator) K8sResetNodes ¶
func (*Actuator) K8sScaleNodes ¶
Click to show internal directories.
Click to hide internal directories.