utils

package
v0.0.0-...-5841409 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(e error)

func ExecDocker

func ExecDocker(cName string, arg ...string)

func ExecSudo

func ExecSudo(arg ...string) *exec.Cmd

ExecSudo is equivalent to exec.Command with sudo prefixed

func Fatalf

func Fatalf(format string, args ...interface{})

func Fatalln

func Fatalln(args ...interface{})

func GetDirectoryFromKey

func GetDirectoryFromKey(key, defaultPath string) string

GetDirectoryFromKey returns the directory name specified by the given key in the configuration file, and creates it if it does not exists

func GetHome

func GetHome() string

GetHome returns the home directory of the user. If sudo is used, it returns the original user home directory.

func PrintError

func PrintError(args ...interface{}) (n int, err error)

func PullImages

func PullImages()

PullImages pulls the latest version of docker images used by topomate

func ResolveFilePath

func ResolveFilePath(path string) string

func StartFrr

func StartFrr(cName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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