manifest

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultEnvironmentName is the name invoked from draft.toml on `draft up` when
	// --environment is not supplied.
	DefaultEnvironmentName = "development"
	// DefaultNamespace specifies the namespace apps should be deployed to by default.
	DefaultNamespace = "default"
	// DefaultWatchDelaySeconds is the time delay between files being changed and when a
	// new draft up` invocation is called when --watch is supplied.
	DefaultWatchDelaySeconds = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Name         string   `toml:"name,omitempty"`
	BuildTarPath string   `toml:"build_tar,omitempty"`
	ChartTarPath string   `toml:"chart_tar,omitempty"`
	Namespace    string   `toml:"namespace,omitempty"`
	Values       []string `toml:"set,omitempty"`
	Wait         bool     `toml:"wait,omitempty"`
	Watch        bool     `toml:"watch,omitempty"`
	WatchDelay   int      `toml:"watch_delay,omitempty"`
}

Environment represents the environment for a given app at build time

type Manifest

type Manifest struct {
	Environments map[string]*Environment `toml:"environments"`
}

Manifest represents a draft.yaml

func New

func New() *Manifest

New creates a new manifest with the Environments intialized.

Jump to

Keyboard shortcuts

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