manifest

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SupportedVersion = "1.1"

Variables

This section is empty.

Functions

func ReadParameters

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

func ReadParametersFromFile

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

Types

type Defaults

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

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

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

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

func ReadFromFile

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

func (*Manifest) Deployment

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

func (*Manifest) FindDeployment

func (m *Manifest) FindDeployment(tenantLabel string, stackLabel string) (*cftool.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