utils

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EdgeCoreConfigFile    = "/tmp/edgecore.yaml"
	CatEdgeCoreConfigFile = "cat /tmp/edgecore.yaml"
	RunEdgecore           = "sudo pkill edgecore; cd ${KUBEEDGE_ROOT}/_output/local/bin/; sudo nohup ./edgecore --config=" + EdgeCoreConfigFile + " > edgecore.log 2>&1 &"
	CheckEdgecore         = "sudo pgrep edgecore"
	CatEdgecoreLog        = "cat ${KUBEEDGE_ROOT}/_output/local/bin/edgecore.log"
	DBFile                = "/tmp/edgecore/edgecore.db"
)

Variables

This section is empty.

Functions

func CfgToFile added in v1.7.0

func CfgToFile(c *edgecore.EdgeCoreConfig) error

func CreateEdgeCoreConfigFile

func CreateEdgeCoreConfigFile(nodeName string) error

func PrintCombinedOutput

func PrintCombinedOutput(cmd *exec.Cmd) error

PrintCombinedOutput to show the os command injuction in combined format

func StartEdgeCore

func StartEdgeCore() error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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