command

package
v0.0.0-...-6a267a1 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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deploy = cli.Command{
	Name:    "deploy",
	Aliases: []string{"d"},
	Usage:   "deploy resources to cloud provider",
	Action:  deployCommand,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:        "d,dir",
			Usage:       "dir to resources",
			EnvVar:      "DIR",
			Value:       ".",
			Destination: &deployOptions.Dir,
		},
		cli.StringFlag{
			Name:        "e,env",
			Usage:       "name of environment",
			EnvVar:      "ENV",
			Value:       "local",
			Destination: &deployOptions.Env,
		},
		cli.StringFlag{
			Name:        "prefix",
			Usage:       "prefix for s3 resources",
			EnvVar:      "S3_PREFIX",
			Value:       "resources",
			Destination: &deployOptions.S3Prefix,
		},
		cli.StringFlag{
			Name:        "p,project",
			Usage:       "project name",
			Required:    true,
			EnvVar:      "PROJECT,CODEBUILD_INITIATOR",
			Destination: &deployOptions.Project,
		},
		cli.StringFlag{
			Name:        "r,role",
			Usage:       "role to assume",
			EnvVar:      "ROLE",
			Destination: &deployOptions.RoleARN,
		},
		cli.StringFlag{
			Name:        "version",
			Usage:       "app version",
			EnvVar:      "VERSION",
			Value:       "latest",
			Destination: &deployOptions.Version,
		},
		cli.StringFlag{
			Name:        "vpc",
			Usage:       "aws vpc id",
			EnvVar:      "VPC_ID",
			Destination: &deployOptions.VpcID,
		},
	},
}
View Source
var Docker = cli.Command{
	Name:        "docker",
	Usage:       "docker related commands",
	Description: "helpers to simplify interacting with docker and ecr",
	Subcommands: []cli.Command{
		{
			Name:   "login",
			Usage:  "login to ecr docker",
			Action: dockerLoginAction,
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:        "docker",
					Value:       "docker",
					Usage:       "docker command to invoke",
					EnvVar:      "COMMAND",
					Destination: &dockerOptions.DockerCLI,
				},
				cli.StringFlag{
					Name:        "r,role",
					Usage:       "role to assume",
					EnvVar:      "ROLE",
					Destination: &dockerOptions.RoleARN,
				},
			},
		},
		{
			Name:   "promote",
			Usage:  "promote docker image from source to target account",
			Action: dockerPromoteAction,
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:        "docker",
					Value:       "docker",
					Usage:       "docker command to invoke",
					EnvVar:      "COMMAND",
					Destination: &dockerOptions.DockerCLI,
				},
				cli.StringFlag{
					Name:        "f,filename",
					Usage:       "properties file containing docker image",
					EnvVar:      "FILENAME",
					Required:    true,
					Destination: &dockerOptions.Filename,
				},
				cli.StringFlag{
					Name:        "r,role",
					Usage:       "role to assume",
					EnvVar:      "ROLE",
					Destination: &dockerOptions.RoleARN,
				},
			},
		},
	},
}
View Source
var Version = cli.Command{
	Name:   "version",
	Action: versionCommand,
}

Functions

This section is empty.

Types

type Image

type Image struct {
	AccountID      string
	Region         string
	RepositoryName string
	Tag            string
}

func (Image) String

func (i Image) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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