Documentation
¶
Index ¶
- Constants
- Variables
- func Download(url, fpath string) error
- func DownloadKubernetesBinaries(k8sVersion, targetDir string) error
- func DownloadSocatBin(targetDir string) error
- func EnlargeStoragePool(poolSize int64) error
- func EnsureRequirements() error
- func GetPoolSize(baseImageName string, nodes int) (int64, error)
- func PathSupportsOverlay(path string) error
- func PrepareBaseImage() error
- func WriteNetConf() error
Constants ¶
View Source
const ( FsMagicAUFS = 0x61756673 // https://goo.gl/CBwx43 FsMagicECRYPTFS = 0xF15F // https://goo.gl/4akUXJ 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 ¶
View Source
var (
BaseImageName string = "flatcar"
)
Functions ¶
func DownloadKubernetesBinaries ¶ added in v0.3.0
func DownloadSocatBin ¶
func EnlargeStoragePool ¶
func EnsureRequirements ¶
func EnsureRequirements() error
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 PrepareBaseImage ¶ added in v0.3.0
func PrepareBaseImage() error
func WriteNetConf ¶
func WriteNetConf() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.