addons

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package addons contains the service to manage addons.

Index

Constants

View Source
const (
	// StackName is the name of the addons nested stack resource.
	StackName = "AddonsStack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Addons

type Addons struct {
	// contains filtered or unexported fields
}

Addons represents additional resources for an application.

func New

func New(appName string) (*Addons, error)

New creates an Addons object given an application name.

func (*Addons) Template

func (a *Addons) Template() (string, error)

Template merges the files under the "addons/" directory of an application into a single CloudFormation template and returns it.

type ErrDirNotExist added in v0.0.7

type ErrDirNotExist struct {
	AppName   string
	ParentErr error
}

ErrDirNotExist occurs when an addons directory for an application does not exist.

func (*ErrDirNotExist) Error added in v0.0.7

func (e *ErrDirNotExist) Error() string

type Output

type Output struct {
	// Name is the Logical ID of the output.
	Name string
	// IsSecret is true if the output value refers to a SecretsManager ARN. Otherwise, false.
	IsSecret bool
	// IsManagedPolicy is true if the output value refers to an IAM ManagedPolicy ARN. Otherwise, false.
	IsManagedPolicy bool
}

Output represents an output from a CloudFormation template.

func Outputs

func Outputs(template string) ([]Output, error)

Outputs parses the Outputs section of a CloudFormation template to extract logical IDs and returns them.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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