Versions in this module Expand all Collapse all v0 v0.1.0 Dec 31, 2019 Changes in this version + const DefaultCommonLibPath + const HaDockerFilePath + const HaLibFilePath + const HaSystemdFilePath + const HaproxyPort + func CheckHaproxyParameter(ipAddresses ...string) error + func CheckKeepalivedParameter(ipAddress string, ethernet string) error + type InitAction interface + CloseSSH func() + GetOperations func(config *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitFireWallOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitFireWallOperation) CloseSSH() + func (itOps *InitFireWallOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitHaproxyOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitHaproxyOperation) CloseSSH() + func (itOps *InitHaproxyOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitHostNameOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitHostNameOperation) CloseSSH() + func (itOps *InitHostNameOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitHostaliasOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitHostaliasOperation) CloseSSH() + func (itOps *InitHostaliasOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitKeepalivedOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitKeepalivedOperation) CloseSSH() + func (itOps *InitKeepalivedOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitKubeToolOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitKubeToolOperation) CloseSSH() + func (itOps *InitKubeToolOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitNetworkOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitNetworkOperation) CloseSSH() + func (itOps *InitNetworkOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitOperations struct + InitNodeAction *operation.NodeInitAction + Machine machine.IMachine + Script string + ScriptPath string + type InitRouteOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitRouteOperation) CloseSSH() + func (itOps *InitRouteOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitSwapOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitSwapOperation) CloseSSH() + func (itOps *InitSwapOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type InitTimeZoneOperation struct + Machine machine.IMachine + NodeInitAction *operation.NodeInitAction + func (itOps *InitTimeZoneOperation) CloseSSH() + func (itOps *InitTimeZoneOperation) GetOperations(node *pb.Node, initAction *operation.NodeInitAction) (operation.Operation, error) + type ItemEnum string + const FireWall + const Haproxy + const HostAlias + const HostName + const Keepalived + const KubeTool + const Network + const Route + const Swap + const TimeZone + type OperationsGenerator struct + func NewInitOperations() *OperationsGenerator + func (og *OperationsGenerator) CreateOperations(item ItemEnum, action *operation.NodeInitAction) InitAction