commands

package
v0.0.0-...-6d89281 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(ctx context.Context, config *Config, name, image string, options *DeployOptions) ([]*ec22.Instance, error)

func GetInstances

func GetInstances(ctx context.Context, appname string) ([]*ec2.Instance, error)

func GetInstances2

func GetInstances2(ctx context.Context, appname string) ([]*ec22.Instance, error)

func Instances

func Instances(ctx context.Context, config *Config, name string) error

func Kill

func Kill(ctx context.Context, name, instanceId string) error

func Pull

func Pull(ctx context.Context, image, username, password string) error

func Shell

func Shell(ctx context.Context, config *Config, name string, sshCmd string) error

Types

type Config

type Config struct {
	Aws     *aws.AwsConfig
	Docker  *DockerConfig
	Logging *LoggingConfig
}

type DeployOptions

type DeployOptions struct {
	Privileged bool
	EnvVars    map[string]string
}

type DockerConfig

type DockerConfig struct {
	Username string
	Password string
}

func (*DockerConfig) Validate

func (c *DockerConfig) Validate() error

type LoggingConfig

type LoggingConfig struct {
	SyslogURL string
}

func (*LoggingConfig) Validate

func (c *LoggingConfig) Validate() error

Jump to

Keyboard shortcuts

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