Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultNodeName() string
- func Defer()
- func Env(a EnvArgs) (string, error)
- func GenerateApi(a GenerateApiArgs) error
- func Invoke(a InvokeArgs) error
- func Logs(a LogsArgs) error
- func New(a NewArgs) error
- func Nodes() error
- func Report(days int) error
- func ShowTable(header []string, data [][]string)
- func Test(a TestArgs) error
- func Watch(a WatchArgs) error
- type ApiNewError
- type ArgumentError
- type AwsResources
- type AwsResourcesArgs
- type ConfirmRequest
- type Deploy
- type DeployArgs
- type EnvArgs
- type GenerateApiArgs
- type InvokeArgs
- type LogsArgs
- type LogsCmd
- type NewArgs
- type Setup
- type SetupArgs
- type Stage
- type StageArgs
- type TestArgs
- type UploadURLRequest
- type UploadURLResponse
- type WatchArgs
Constants ¶
View Source
const ( ApiDir = "api" PublicDir = "public" BuildDir = "build" BinaryName = "bootstrap" DeployHTTPMethod = "deploy" HashCharacters = 8 )
View Source
const ( PingTemplate = "ping" ExcusesTemplate = "excuses" ChatTemplate = "chat" TodoTemplate = "todo" )
View Source
const ( DefaultTemplate = PingTemplate LicenseFile = "LICENSE" ReadmeFile = "README.md" )
View Source
const (
APIGatewayLogsRole = "APIGatewayPushToCloudWatchLogsRole"
)
View Source
const DestroyHTTPMethod = "destroy"
Variables ¶
View Source
var (
FunctionsPath = filepath.Join(BuildDir, "functions")
)
View Source
var TemplateRepos = map[string]string{ PingTemplate: "https://github.com/mantil-io/template-ping", ExcusesTemplate: "https://github.com/mantil-io/template-excuses", ChatTemplate: "https://github.com/mantil-io/template-chat", TodoTemplate: "https://github.com/mantil-io/template-todo", }
Functions ¶
func DefaultNodeName ¶
func DefaultNodeName() string
func GenerateApi ¶
func GenerateApi(a GenerateApiArgs) error
func Invoke ¶
func Invoke(a InvokeArgs) error
Types ¶
type ApiNewError ¶
type ApiNewError struct {
Api string
}
func (ApiNewError) Error ¶
func (e ApiNewError) Error() string
type ArgumentError ¶
type ArgumentError struct {
// contains filtered or unexported fields
}
func NewArgumentError ¶
func NewArgumentError(format string, v ...interface{}) *ArgumentError
func (*ArgumentError) Error ¶
func (a *ArgumentError) Error() string
type AwsResources ¶
type AwsResources struct {
// contains filtered or unexported fields
}
func NewAwsResources ¶
func NewAwsResources(a AwsResourcesArgs) *AwsResources
func (*AwsResources) Show ¶
func (a *AwsResources) Show() error
type AwsResourcesArgs ¶
type ConfirmRequest ¶
type ConfirmRequest struct {
ReportID string `json:"reportId"`
}
type Deploy ¶
type Deploy struct {
// contains filtered or unexported fields
}
func NewDeploy ¶
func NewDeploy(a DeployArgs) (*Deploy, error)
func NewDeployWithStage ¶
func (*Deploy) DeployWithTitle ¶
func (*Deploy) HasUpdates ¶
type DeployArgs ¶
type DeployArgs struct {
Stage string
}
type GenerateApiArgs ¶
type InvokeArgs ¶
type SetupArgs ¶
type UploadURLRequest ¶
type UploadURLResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.