edgenode

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NODE_NAME     = "NODE_NAME"
	NodeNameSplit = "="
)

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(sourceFile string, destinationFile string, perm os.FileMode) error

CopyFile copys sourceFile to destinationFile

func DeployStaticYaml added in v1.4.0

func DeployStaticYaml(manifestList, templateList []string, podManifestPath string) error

func EnsureDir

func EnsureDir(dirname string) error

EnsureDir make sure dir is exists, if not create

func Exec

func Exec(cmd *exec.Cmd) error

Exec execs the command

func FileExists

func FileExists(filename string) (bool, error)

FileExists determines whether the file exists

func GetContentFormFile

func GetContentFormFile(filename string, regularExpression string) ([]string, error)

GetContentFormFile returns all strings that match the regular expression regularExpression

func GetHostname added in v1.0.0

func GetHostname(hostnameOverride string) (string, error)

func GetNodeName

func GetNodeName(kubeadmConfPath string) (string, error)

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

func GetSingleContentFromFile(filename string, regularExpression string) (string, error)

GetSingleContentFromFile determines whether there is a unique string that matches the regular expression regularExpression and returns it

func RemoveStaticYaml added in v1.4.0

func RemoveStaticYaml(manifestList []string, podManifestPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL