Documentation
¶
Index ¶
- Constants
- func CreateSharedTmpdir()
- func Download(url, fpath string) (*os.File, error)
- func DownloadK8sBins(version, dir string) error
- func DownloadSocatBin(dir string) error
- func EnlargeStoragePool(poolSize int64) error
- func EnsureBridge() error
- func EnsureRequirements()
- func Exec(stdin io.Reader, stdout, stderr io.Writer, machine string, cmd ...string) error
- func ExecQuiet(machine string, cmd ...string) error
- func GetIPAddressLegacy(mach string) (string, error)
- func GetNodeName(no int) string
- func GetPoolSize(baseImage string, nodes int) (int64, error)
- func IsNodeRunning(nodeName string) bool
- func MachineImageExists(machine string) bool
- func NewNode(baseImage, machine string) error
- func PathSupportsOverlay(path string) error
- func WriteNetConf() error
- type Node
Constants ¶
View Source
const ( FsMagicAUFS = 0x61756673 // https://goo.gl/CBwx43 FsMagicZFS = 0x2FC12FC1 // https://goo.gl/xTvzO5 )
View Source
const LoopbackNetConf string = `
{
"cniVersion": "0.2.0",
"type": "loopback"
}`
View Source
const LoopbackNetPath string = "/etc/cni/net.d/10-loopback.conf"
View Source
const NspawnNetConf string = `` /* 297-byte string literal not displayed */
View Source
const NspawnNetPath string = "/etc/cni/net.d/10-kube-spawn-net.conf"
Variables ¶
This section is empty.
Functions ¶
func CreateSharedTmpdir ¶
func CreateSharedTmpdir()
func DownloadK8sBins ¶
func DownloadSocatBin ¶
func EnlargeStoragePool ¶
func EnsureBridge ¶
func EnsureBridge() error
func EnsureRequirements ¶
func EnsureRequirements()
func GetIPAddressLegacy ¶
func GetNodeName ¶
func IsNodeRunning ¶
func MachineImageExists ¶
func PathSupportsOverlay ¶
PathSupportsOverlay checks whether the given path is compatible with OverlayFS. This method also calls isOverlayfsAvailable(). It returns error if OverlayFS is not supported.
func WriteNetConf ¶
func WriteNetConf() error
Types ¶
Click to show internal directories.
Click to hide internal directories.