cmd

package
v0.0.2-0...-da6c2cf Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "concourse-aws",
	Short: "Scalable Concourse CI Server on AWS",
	Long: `This tool can provision scalable concourse ci servers on AWS.  This also supports to sync(get/put) configuration files with S3.
	`,
}

RootCmd represents the base command when called without any subcommands

Functions

func AskForRequiredInput

func AskForRequiredInput(prompt string, opts ...AskOptions) string

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetFilesFromS3

func GetFilesFromS3(region string, bucketName string, path string, filenames []string)

func InteractivelyCreateConfig

func InteractivelyCreateConfig() *concourse.Config

func ListAvailabilityZones

func ListAvailabilityZones(region string) []string

func ListKeys

func ListKeys(region string) []string

func ListRegions

func ListRegions() []string

func ListSubnets

func ListSubnets(region string, vpcId string, az string) []string

func ListVPCs

func ListVPCs(region string) []string

func ObtainExternalIp

func ObtainExternalIp() string

func PutFilesToS3

func PutFilesToS3(region string, bucketName string, path string, filenames []string)

func Run

func Run(cmd *cobra.Command, args []string)

func RunRestore

func RunRestore(cmd *cobra.Command, args []string)

func RunSave

func RunSave(cmd *cobra.Command, args []string)

func SSHGenKeyIfNotExist

func SSHGenKeyIfNotExist(keyFileName string)

func TerraformRun

func TerraformRun(subcommand string, c *concourse.Config)

func WriteConfigFile

func WriteConfigFile(config *concourse.Config, path string)

Types

type AskOptions

type AskOptions struct {
	Candidates []string
	Validate   func(string) error
	Default    string
}

Jump to

Keyboard shortcuts

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