Documentation ¶
Index ¶
- Variables
- func Clone(url string, targetDir string, _refName string, _progress bool) (r *git.Repository)
- func ExecuteStep(commands []string, workingDirectory string)
- func Pull(targetDir string, _progress bool) (err error)
- func ReadFile(path string) []byte
- func Run(progress bool, target string, handleError bool, commands ...string) (bytes.Buffer, bytes.Buffer)
- type DependencyConfig
- type ProductConfig
- type Step
- type StepConfiguration
Constants ¶
This section is empty.
Variables ¶
Catchy : bold and cyan text
Error : bold and red text
Notice : bold and blue text
View Source
var Warning = color.New(color.FgYellow).PrintfFunc()
Warning : yellow text
Functions ¶
func ExecuteStep ¶ added in v0.2.0
ExecuteStep : executes all commands of a single step
Types ¶
type DependencyConfig ¶
DependencyConfig : config for dependency
type ProductConfig ¶
type ProductConfig struct { Name string Version string Description string Dependencies map[string]*DependencyConfig Steps Step }
ProductConfig : config for product
func GetProductConfig ¶
func GetProductConfig(configFile string) ProductConfig
GetProductConfig : receives a bytestring and returns a ProductConfig
type Step ¶ added in v0.2.0
type Step struct { Setup StepConfiguration Update StepConfiguration Dependencies StepConfiguration }
Step : a step is a command of hantera for which additional commands/functionality can be configured
type StepConfiguration ¶ added in v0.2.0
StepConfiguration : contains information about pre/post/override commands for a step
Click to show internal directories.
Click to hide internal directories.