tasks

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreUp      = "PreUp"
	PostDeploy = "PostDeploy"
	PostDelete = "PostDelete"
)

Variables

View Source
var (
	ErrNoTaskFile = errors.New(".draft-tasks.toml not found")
)

Functions

This section is empty.

Types

type Result

type Result struct {
	Kind    string
	Command []string
	Pass    bool
	Message string
}

type Tasks

type Tasks struct {
	PreUp      map[string]string `toml:"pre-up"`
	PostDeploy map[string]string `toml:"post-deploy"`
	PostDelete map[string]string `toml:"cleanup"`
}

func Load

func Load(path string) (*Tasks, error)

Load takes a path to file where tasks are defined and loads them in tasks

func (*Tasks) Run

func (t *Tasks) Run(kind, podName string) ([]Result, error)

Jump to

Keyboard shortcuts

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