common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DerrickHome    = ".derrick"
	DerrickHomeEnv = "DERRICK_HOME"

	DerrickConf = "derrick.json"
)
View Source
const (
	Dockerfile           = "Dockerfile"
	KubernetesDeployment = "kubernetes-deployment.yaml"
)

Variables

This section is empty.

Functions

func CheckDerrickFirstSetup

func CheckDerrickFirstSetup() (bool, error)

CheckDerrickFirstSetup checks if derrick is used for the first time

func CheckDerrickInitStep

func CheckDerrickInitStep(workspace string) bool

func CheckDockerFileExisted

func CheckDockerFileExisted(workspace string) bool

func GetCommandsHome

func GetCommandsHome() (string, error)

func GetDerrickHome

func GetDerrickHome() (string, error)

GetDerrickHome return vela home dir

func GetRiggingHome

func GetRiggingHome() (string, error)

func InitCommandsDir

func InitCommandsDir() error

func InitDerrickDir

func InitDerrickDir() error

func InitDirs

func InitDirs() error

InitDirs create dir if not exits

func InitRiggingDir

func InitRiggingDir() error

func RealtimePrintCommandOutput

func RealtimePrintCommandOutput(cmd *exec.Cmd, logFile string) error

RealtimePrintCommandOutput prints command output in real time If logFile is "", it will prints the stdout, or it will write to local file

Types

This section is empty.

Jump to

Keyboard shortcuts

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