util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RebootCmd = "touch /tmp/sebrauc_reboot_test"
	RaucCmd   = "go run code.thetadev.de/TSGRain/SEBRAUC/src/fixtures/rauc_mock"

	TestMode = true
)

Variables

View Source
var (
	ErrAlreadyRunning   = errors.New("rauc already running")
	ErrFileDoesNotExist = errors.New("file does not exist")
)

Functions

func CommandFromString

func CommandFromString(cmdString string) *exec.Cmd

func CreateDirIfNotExists

func CreateDirIfNotExists(dirpath string) error

func DoesFileExist

func DoesFileExist(filepath string) bool

func GetTmpdir

func GetTmpdir() (string, error)

func Reboot

func Reboot(t time.Duration)

func Version

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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