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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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