Documentation
¶
Index ¶
- Constants
- func CheckDerrickFirstSetup() (bool, error)
- func CheckDerrickInitStep(workspace string) bool
- func CheckDockerFileExisted(workspace string) bool
- func GetCommandsHome() (string, error)
- func GetDerrickHome() (string, error)
- func GetRiggingHome() (string, error)
- func InitCommandsDir() error
- func InitDerrickDir() error
- func InitDirs() error
- func InitRiggingDir() error
- func RealtimePrintCommandOutput(cmd *exec.Cmd, logFile string) error
- type AutoParam
- type ParamReport
- type TemplateRenderContext
Constants ¶
View Source
const ( DerrickHome = ".derrick" DerrickHomeEnv = "DERRICK_HOME" DerrickLogo = `` /* 609-byte string literal not displayed */ DerrickConf = "derrick.conf" )
View Source
const ( Meta = "Meta" Dockerfile = "Dockerfile" DockerCompose = "DockerCompose" KubernetesDeployment = "kubernetes-deployment.yaml" )
Variables ¶
This section is empty.
Functions ¶
func CheckDerrickFirstSetup ¶
CheckDerrickFirstSetup checks if derrick is used for the first time
func CheckDerrickInitStep ¶
func CheckDockerFileExisted ¶
func GetCommandsHome ¶
func GetRiggingHome ¶
func InitCommandsDir ¶
func InitCommandsDir() error
func InitDerrickDir ¶
func InitDerrickDir() error
func InitRiggingDir ¶
func InitRiggingDir() error
Types ¶
type ParamReport ¶
type ParamReport struct {
Name string
Nodes map[string]ParamReport
Store map[string]string
}
func (*ParamReport) GenerateReport ¶
func (dr *ParamReport) GenerateReport() map[string]string
func (*ParamReport) RegisterAutoParam ¶
func (dr *ParamReport) RegisterAutoParam(d AutoParam, nodeName string) error
type TemplateRenderContext ¶
type TemplateRenderContext struct {
ImageWithTag string
Version string
ProjectFolder string
DerrickVersion string
ProjectName string
}
func GetBuildContext ¶
func GetBuildContext(workspace string) (*TemplateRenderContext, error)
Click to show internal directories.
Click to hide internal directories.