load

package
v0.0.0-...-a0ca748 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	Order  []string `yaml:"order"`
	Groups Groups   `yaml:"groups"`
}

ConfigFile defines structure of the serv yaml file

func Config

func Config(file string) (ConfigFile, error)

Config the specified yml file

type Groups

type Groups = map[string]Services

Groups defines structure of the groups section in serv yaml file

type Healthcheck

type Healthcheck struct {
	Command string `yaml:"command"`
	Timeout int    `yaml:"timeout"`
	Sleep   int    `yaml:"sleep"`
}

Healthcheck defines structure of health check command

type Postcondition

type Postcondition struct {
	Command string `yaml:"command"`
}

Postcondition defines structure of post condition command

type Repository

type Repository struct {
	URL  string `yaml:"url"`
	Path string `yaml:"path"`
}

Repository defines structure of single repository

type Service

type Service struct {
	Repository     `yaml:",inline"`
	Command        string          `yaml:"command"`
	Healthchecks   []Healthcheck   `yaml:"healthchecks"`
	Postconditions []Postcondition `yaml:"postconditions"`
}

Service defines structure of a single project

type Services

type Services = []Service

Services defines the structure for array of services

Jump to

Keyboard shortcuts

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