schema

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs struct {
	Before []string `yaml:"before"`
	After  []string `yaml:"after"`
}

Jobs represent any shell scripts

type Resource

type Resource interface {
	Lint(string, *util.Values) error
	Status() (bool, error)
	InstallOrUpgrade() error
	Delete() error
	Connect(interface{})
	SetInput([]byte)
	GetInput() []byte
}

Resource is the thing to be created / destroyed

type Stage

type Stage struct {
	Depends  []string    `yaml:"depends"`  // dependencies
	Forget   bool        `yaml:"forget"`   // install only
	Template string      `yaml:"template"` // template file
	Jobs     Jobs        `yaml:"jobs"`     // bash jobs
	Kind     string      `yaml:"kind"`     // type of deploy
	Requires util.Values `yaml:"requires"` // env requirements
	Values   interface{} `yaml:"values"`   // yaml values
	Resource
}

Stage represents a single part of the deployment pipeline

func (*Stage) UnmarshalYAML

func (stg *Stage) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML allows us to determine the type of our resource

type Workflow

type Workflow struct {
	Build  map[string]string `yaml:"build"`
	Tag    map[string]string `yaml:"tag"`
	Stages map[string]*Stage `yaml:"stages"`
	Values util.Values       `yaml:"values"`
}

Workflow represents the complete pipeline

func NewWorkflow

func NewWorkflow() *Workflow

Jump to

Keyboard shortcuts

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