manifest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SupportedVersion = "1.1"

Variables

This section is empty.

Functions

func ReadParameters added in v1.1.0

func ReadParameters(r io.Reader) (map[string]string, error)

func ReadParametersFromFile added in v1.1.0

func ReadParametersFromFile(path string) (map[string]string, error)

Types

type Defaults added in v1.1.0

type Defaults struct {
	// AccountId is an AWS account ID to check the profile against.
	AccountId string

	// Region is an AWS region, if different from the profile's default.
	Region string

	// Template is the path of a template file relative to Config.
	Template string

	// Parameter contains paths to parameter files and direct overrides.
	Parameters []*Parameter

	// StackName can include substitutions (as Go templates).
	StackName string

	// Protected deployments ignore the --yes flag.
	Protected *bool
}

func (Defaults) MergeFrom added in v1.1.0

func (d Defaults) MergeFrom(other *Defaults) Defaults

type Deployment

type Deployment struct {
	TenantLabel  string
	StackLabel   string
	Protected    bool
	Constants    map[string]string
	Tags         map[string]string
	AccountId    string
	Region       string
	StackName    string
	TemplateBody []byte
	Parameters   map[string]string
}

type Global

type Global struct {
	Constants map[string]string
	Tags      map[string]string
	Default   *Defaults
}

type Manifest

type Manifest struct {
	Version string
	Global  Global
	Tenants []*Tenant
	Stacks  []*Stack
}

func Read added in v1.1.0

func Read(r io.Reader) (*Manifest, error)

func ReadFromFile added in v1.1.0

func ReadFromFile(path string) (*Manifest, error)

func (*Manifest) Deployment added in v1.1.0

func (m *Manifest) Deployment(
	tenant *Tenant,
	stack *Stack,
	target *Target,
) (result *Deployment, err error)

func (*Manifest) FindDeployment added in v1.1.0

func (m *Manifest) FindDeployment(tenantLabel string, stackLabel string) (*Deployment, bool, error)

type Parameter

type Parameter struct {
	// File is the path of a parameter file relative to Config.
	File  string
	Key   string
	Value string
}

type Stack

type Stack struct {
	Label   string
	Default *Defaults
	Targets []*Target
	Tags    map[string]string
}

type Target

type Target struct {
	Tenant   string
	Override *Defaults
}

type Tenant

type Tenant struct {
	Label     string
	Default   *Defaults
	Constants map[string]string
	Tags      map[string]string
}

Jump to

Keyboard shortcuts

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