Documentation ¶
Index ¶
- Constants
- func CopyFile(sourceFile string, destinationFile string, perm os.FileMode) error
- func DeployStaticYaml(manifestList, templateList []string, podManifestPath string) error
- func EnsureDir(dirname string) error
- func Exec(cmd *exec.Cmd) error
- func FileExists(filename string) (bool, error)
- func GetContentFormFile(filename string, regularExpression string) ([]string, error)
- func GetHostname(hostnameOverride string) (string, error)
- func GetNodeName(kubeadmConfPath string) (string, error)
- func GetPodManifestPath() string
- func GetSingleContentFromFile(filename string, regularExpression string) (string, error)
- func RemoveStaticYaml(manifestList []string, podManifestPath string) error
Constants ¶
View Source
const ( NODE_NAME = "NODE_NAME" NodeNameSplit = "=" )
Variables ¶
This section is empty.
Functions ¶
func DeployStaticYaml ¶ added in v1.4.0
func FileExists ¶
FileExists determines whether the file exists
func GetContentFormFile ¶
GetContentFormFile returns all strings that match the regular expression regularExpression
func GetHostname ¶ added in v1.0.0
func GetNodeName ¶
GetNodeName gets the node name based on environment variable, parameters --hostname-override in the configuration file or hostname
func GetPodManifestPath ¶
func GetPodManifestPath() string
GetPodManifestPath return podManifestPath, use default value of kubeadm/minikube/kind. etc.
func GetSingleContentFromFile ¶
GetSingleContentFromFile determines whether there is a unique string that matches the regular expression regularExpression and returns it
func RemoveStaticYaml ¶ added in v1.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.