Documentation ¶
Index ¶
- func CreateAPIEndpoint(ctx *pulumi.Context, gateway *apigateway.RestApi, environment string, ...) (pulumi.StringOutput, error)
- func CreateNewAPIGateway(ctx *pulumi.Context, apiName string) (*apigateway.RestApi, error)
- func CreatePulumiProject(ctx context.Context, owner string, projectName string, env string, ...) (string, error)
- func CreateRouteHandler(ctx *pulumi.Context, route APIRoute, method string) (*lambda.Function, error)
- func GetCurrentPulumiUser() (string, error)
- func LogoutCurrentUser(args []string) error
- func PackageDotNetLambda(tmpDirectoryName, routeName, method string) (string, error)
- func PackageGoLambda(tmpDirectoryName, routeName, method string) (string, error)
- func PackageTypeScriptLambda(tmpDirectoryName string, routeName, method string) (string, error)
- func PromptForPulumiAccessToken() error
- type APIEndpoint
- type APIEndpointFunction
- type APIRoute
- type PulumiAction
- func (a *PulumiAction) Destroy(ctx context.Context) error
- func (a *PulumiAction) Fail(err error, message string) error
- func (a *PulumiAction) Preview(ctx context.Context) error
- func (a *PulumiAction) SetUp(ctx context.Context, configPath string) error
- func (a *PulumiAction) Update(ctx context.Context) error
- type PulumiActionOutputLogger
- type PulumiActionResourceOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAPIEndpoint ¶
func CreateAPIEndpoint( ctx *pulumi.Context, gateway *apigateway.RestApi, environment string, route APIRoute, methods []string, ) (pulumi.StringOutput, error)
func CreateNewAPIGateway ¶
func CreatePulumiProject ¶
func CreatePulumiProject(ctx context.Context, owner string, projectName string, env string, description string) (string, error)
createPulumiProject creates a new Pulumi project and the appropriate stacks for each environment.
TODO: Check to see if a project exists before trying to create it. Otherwise I am guessing some pretty funky stuff will happen if the similar project names are specified.
func CreateRouteHandler ¶
func CreateRouteHandler(ctx *pulumi.Context, route APIRoute, method string) (*lambda.Function, error)
CreateRouteHandler creates a Lambda function used for handling API Gateway requests.
func GetCurrentPulumiUser ¶
GetCurrentPulumiUser gets the current Pulumi username.
func LogoutCurrentUser ¶
LogoutCurrentUser logouts out the current user from the Pulumi CLI.
func PackageDotNetLambda ¶
PackageDotNetLambda packages a DotNet Lambda for distribution.
func PackageGoLambda ¶
PackageGoLambda packages a Go Lambda for distribution.
func PackageTypeScriptLambda ¶
PackageTypeScriptLambda packages a TypeScript Lambda for distribution.
func PromptForPulumiAccessToken ¶
func PromptForPulumiAccessToken() error
Types ¶
type APIEndpoint ¶
type APIEndpoint struct { Name string URL pulumi.StringOutput }
type APIEndpointFunction ¶
type PulumiAction ¶
type PulumiAction struct { CreateDeployment func(environment string) (auto.Stack, error) Environment string Stack auto.Stack TemporaryDirectory *utils.TemporaryDirectory }
func (*PulumiAction) Destroy ¶
func (a *PulumiAction) Destroy(ctx context.Context) error
Destroy runs a destroy of the infrastructure.
func (*PulumiAction) Fail ¶
func (a *PulumiAction) Fail(err error, message string) error
Fail handles the failure operations like cleaning the tmp dir.
func (*PulumiAction) Preview ¶
func (a *PulumiAction) Preview(ctx context.Context) error
Preview runs a preview of the infrastructure changes.
type PulumiActionOutputLogger ¶
type PulumiActionOutputLogger struct { Headers []string Rows map[string]PulumiActionResourceOutput NewRowsAdded int TableWriteInProgress bool FirstPrintDone bool }
func (*PulumiActionOutputLogger) AddRow ¶
func (p *PulumiActionOutputLogger) AddRow(msg string)
func (*PulumiActionOutputLogger) Write ¶
func (p *PulumiActionOutputLogger) Write(msg []byte) (int, error)
func (*PulumiActionOutputLogger) WriteTable ¶
func (p *PulumiActionOutputLogger) WriteTable()