Documentation ¶
Index ¶
Constants ¶
View Source
const ( SplitSymbol = "." CheckEqual = "=" CheckLarge = ">" CheckLess = "<" ErrParaEmpty = "parameter empty" ErrPara = "parameter error" ErrInvalid = "parameter invalid" ErrSplitSym = "error split symbol found" ErrParaInput = "input parameter invalid" ErrTooHigh = "version too high" ErrTooLow = "version too low" ErrNotEqual = "version not equal" ErrNotEnough = "amount not enough" UnclearInputPara = "input parameter not clear" GiByteUnits float64 = 1000 * 1000 * 1000 )
View Source
const (
InitRemoteScriptPath = "/tmp"
)
Variables ¶
This section is empty.
Functions ¶
func CheckEntity ¶
check if entity resource satisfied minimal requirements
func CheckIPValid ¶
check if ip valid as 0.0.0.0 or defined in RFC1122, RFC4632, RFC4291
Types ¶
type BaseOperation ¶
func (*BaseOperation) AddCommands ¶
func (op *BaseOperation) AddCommands(commands ...command.Command)
func (*BaseOperation) Do ¶
func (op *BaseOperation) Do() (stdout, stderr []byte, err error)
func (*BaseOperation) ResetCommands ¶
func (op *BaseOperation) ResetCommands()
type NodeInitAction ¶
type NodeInitAction struct { NodeInitConfig *pb.NodeDeployConfig NodesConfig []*pb.NodeDeployConfig ClusterConfig *pb.ClusterConfig }
Click to show internal directories.
Click to hide internal directories.