config

package
v0.0.0-...-16e729a Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	RuntimeFilePath string
	SaveFilePath    string
}

Artifact is struct for what artifacts to save post-pipeline

type CleanUp

type CleanUp struct {
	AdditionalCMDs []string
	InDaemon       bool
	Artifacts      []Artifact
}

CleanUp is a struct for the post-pipeline actions to clean up the build and save artifacts

type Config

type Config struct {
	Environment Environment
	Project     Project
	Services    []Service
	CleanUp     CleanUp
}

Config is a struct to parse the TOML config into

func Load

func Load(path, clonePath string) (Config, error)

Load reads the config and returns a Config struct

type Environment

type Environment struct {
	Env      []string
	ExecSync []string
	Exec     []string
}

Environment is the config for the environment

type HealthCheck

type HealthCheck struct {
	Type              string // Either cmd, http_get, icmp_ping or ptrace_attach
	CMD               string
	Address           string
	ExpectedCondition string
	Retrys            int
}

HealthCheck is a struct to check for a service's 'upness'

type Project

type Project struct {
	RepoURL         string
	CloneCMD        string
	AuthType        string
	SSHPrivKeyPath  string
	SSHPubKeyPath   string
	Username        string
	Password        string
	PromptForPWD    bool
	MaestrodHostEnv string
	MaestrodPortEnv string
	MaestrodHost    string
	MaestrodPort    int
}

Project is the struct of the project to build

type Service

type Service struct {
	Name             string
	Tag              string
	TagType          string
	Path             string
	BuildLogFilePath string
	BuildCMD         []string
	TestCMD          []string
	CheckCMD         []string
	CreateCMD        []string
	UpdateCMD        []string
	HealthCheck      HealthCheck `toml:"[Services.HealthCheck]"`
	DependsOn        []string
}

Service is a struct of the service to build

Jump to

Keyboard shortcuts

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