deploy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config stores configuration

func (*Config) Get

func (c *Config) Get(key string) (interface{}, bool)

Get a config value

func (*Config) GetString

func (c *Config) GetString(key string) string

GetString returns the configuration value for the given key

func (*Config) Set

func (c *Config) Set(key string, value interface{})

Set a config value

type DeployOpts

type DeployOpts struct {
	Name       string            `json:"name"`
	EnvType    string            `json:"env_type"`
	Config     Config            `json:"config"`
	Parameters map[string]string `json:"parameters"`
}

DeployOpts configure a deploy action

type Deployer

type Deployer interface {
	Deploy(context.Context, *Component, DeployOpts) (Deployment, error)
}

Deployer is an interface used to Deploy a Component

func NewSamDeployer

func NewSamDeployer(bucket string) Deployer

NewSamDeployer returns a Deployer using AWS SAM

type Deployment

type Deployment struct {
	StartedAt  time.Time
	FinishedAt time.Time
	Status     string
	Error      error
	Log        string
}

Deployment contains information about the result of a deploy

type Sam

type Sam struct {
	Bucket string
}

Sam is an AWS SAM app that implements the Deployer interface

func (*Sam) Deploy

func (sam *Sam) Deploy(ctx context.Context, c *Component, opts DeployOpts) (Deployment, error)

Deploy the application

Jump to

Keyboard shortcuts

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