lib

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catchy = color.New(color.Bold, color.FgCyan).PrintfFunc()

Catchy : bold and cyan text

View Source
var Error = color.New(color.Bold, color.FgRed).PrintfFunc()

Error : bold and red text

View Source
var Notice = color.New(color.Bold, color.FgBlue).PrintfFunc()

Notice : bold and blue text

View Source
var Warning = color.New(color.FgYellow).PrintfFunc()

Warning : yellow text

Functions

func Clone

func Clone(url string, targetDir string, _refName string, _progress bool) (r *git.Repository)

Clone : Clones a given repository into targetDir

func ExecuteStep added in v0.2.0

func ExecuteStep(commands []string, workingDirectory string)

ExecuteStep : executes all commands of a single step

func Pull

func Pull(targetDir string, _progress bool) (err error)

Pull : Pulls a given repository

func ReadFile

func ReadFile(path string) []byte

ReadFile : reads a file from a given path and returns its contents

func Run added in v0.0.5

func Run(progress bool, target string, handleError bool, commands ...string) (bytes.Buffer, bytes.Buffer)

Run : executes a process with the given parameters

Types

type DependencyConfig

type DependencyConfig struct {
	Version    string
	Repository string
	Artifacts  string
}

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

type StepConfiguration struct {
	Pre      []string
	Override []string
	Post     []string
}

StepConfiguration : contains information about pre/post/override commands for a step

Jump to

Keyboard shortcuts

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