cmd

package
v0.0.0-...-473356e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const SrcPath = "./main.go"

SrcPath defines the path to the example Go source main.go to be copied from bindata to the current working directory upon init

View Source
const YmlPath = "./aegis.yaml"

YmlPath defines the path to the example aegis config file to be copied from bindata to the current working directory upon init

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "aegis",
	Short: "Deploy RESTful serverless APIs ",
	Long:  `A tool to deploy a RESTful serverless API using AWS Lambda and API Gateway with a Lambda Proxy and an API Gateway ANY request.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Deploy

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

Deploy will build and deploy to AWS Lambda and API Gateway

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 InitConfig

func InitConfig()

InitConfig reads in config file and ENV variables if set.

func SetAwsCfg

func SetAwsCfg(config aws.Config)

SetAwsCfg will set awsCfg values using an aws.Config struct

func Update

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

Update will update an AWS Lambda, intended for quick updates where no configuration changes are needed

Types

This section is empty.

Directories

Path Synopsis
package config allows re-use of the config struct
package config allows re-use of the config struct
Package deploy is purely for organization, the deploy.go command file was getting absurdly long
Package deploy is purely for organization, the deploy.go command file was getting absurdly long

Jump to

Keyboard shortcuts

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