manifest

package
v0.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 4 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"`
	Registry      string   `toml:"registry,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"`
	Watch         bool     `toml:"watch"`
	WatchDelay    int      `toml:"watch-delay,omitempty"`
	OverridePorts []string `toml:"override-ports,omitempty"`
	AutoConnect   bool     `toml:"auto-connect"`
}

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.toml

func Load added in v0.12.0

func Load(name string) (*Manifest, error)

Load opens the named file for reading. If successful, the manifest is returned.

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