Documentation ¶
Index ¶
- Constants
- Variables
- func AuthToken(n *domain.Node) (string, error)
- 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 NewDeploy(a DeployArgs) error
- func NodeLogin(a NodeLoginArgs) error
- func NodeLogout(a NodeLogoutArgs) error
- func NodeUserAdd(a NodeUserAddArgs) error
- func NodeUserRemove(a NodeUserRemoveArgs) 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 NodeLoginArgs
- type NodeLogoutArgs
- type NodeUserAddArgs
- type NodeUserRemoveArgs
- 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" MainFile = "main.go" DeployHTTPMethod = "deploy" HashCharacters = 8 )
View Source
const ( PingTemplate = "ping" ExcusesTemplate = "excuses" ChatTemplate = "chat" TodoTemplate = "todo" G2STemplate = "github-to-slack" HNAlertsTemplate = "hn-alerts" SignupTemplate = "signup" AtlasTemplate = "mongo-atlas" S3UploadTemplate = "presigned-s3-upload" NgsChatTemplate = "ngs-chat" )
View Source
const ( DefaultTemplate = PingTemplate LicenseFile = "LICENSE" ReadmeFile = "README.md" ImagesDir = "images" )
View Source
const ( UserAddHTTPMethod = "node/addUser" UserRemoveHTTPMethod = "node/removeUser" LoginHTTPMethod = "auth/login" )
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", G2STemplate: "https://github.com/mantil-io/template-github-to-slack", HNAlertsTemplate: "https://github.com/mantil-io/example-hn-alerts", SignupTemplate: "https://github.com/mantil-io/example-signup", AtlasTemplate: "https://github.com/mantil-io/example-mongo-atlas", S3UploadTemplate: "https://github.com/mantil-io/template-presigned-s3-upload", NgsChatTemplate: "https://github.com/mantil-io/example-ngs-chat", }
Functions ¶
func DefaultNodeName ¶
func DefaultNodeName() string
func GenerateApi ¶
func GenerateApi(a GenerateApiArgs) error
func Invoke ¶
func Invoke(a InvokeArgs) error
func NewDeploy ¶
func NewDeploy(a DeployArgs) error
func NodeLogin ¶ added in v0.2.11
func NodeLogin(a NodeLoginArgs) error
func NodeLogout ¶ added in v0.2.11
func NodeLogout(a NodeLogoutArgs) error
func NodeUserAdd ¶ added in v0.2.11
func NodeUserAdd(a NodeUserAddArgs) error
func NodeUserRemove ¶ added in v0.2.11
func NodeUserRemove(a NodeUserRemoveArgs) 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 NewDeployWithStage ¶
func (*Deploy) DeployWithTitle ¶
func (*Deploy) HasUpdates ¶
type DeployArgs ¶
type DeployArgs struct {
Stage string
}
type GenerateApiArgs ¶
type InvokeArgs ¶
type NodeLoginArgs ¶ added in v0.2.11
type NodeLoginArgs struct {
NodeURL string
}
type NodeLogoutArgs ¶ added in v0.2.11
type NodeLogoutArgs struct {
NodeName string
}
type NodeUserAddArgs ¶ added in v0.2.11
type NodeUserRemoveArgs ¶ added in v0.2.11
type SetupArgs ¶
type UploadURLRequest ¶
type UploadURLResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.