Documentation ¶
Index ¶
- Constants
- func AddNodeLabel(master *ssh.Node, labels map[string]string, nodes ...string)
- func AddressRange(cidr string) (net.IP, net.IP)
- func Assert(name string, data interface{}, funcs ...template.FuncMap) ([]byte, error)
- func AutoLabelNodes(master *ssh.Node, labels map[string]string, nodeNames ...string)
- func GetVip(cidr string, vipFor VipFor) string
- func RemoveNodeLabel(master *ssh.Node, label string, nodes ...string)
- func ScpAndApplyAssert(node *ssh.Node, name string, data interface{}, funcs ...template.FuncMap) error
- func SearchLabelNode(master *ssh.Node, labels map[string]string) []string
- func SelectNodeNames(nodes []*ssh.Node, selectNodes []string) []string
- func Template(content string, data interface{}, funcs ...template.FuncMap) ([]byte, error)
- type VipFor
Constants ¶
View Source
const ( Vik8sApiServer = iota + 1 Vik8sCalicoETCD )
Variables ¶
This section is empty.
Functions ¶
func Assert ¶ added in v0.5.0
Assert Search assert file. First, it will search user local home path $HOME/.vik8s/$cloud/$name. if not found, then the default name file will return
func AutoLabelNodes ¶
func ScpAndApplyAssert ¶ added in v0.5.2
func SelectNodeNames ¶
根据提供的IP或者hostname选择节点的hostname
Types ¶
Click to show internal directories.
Click to hide internal directories.