Documentation
¶
Index ¶
- Constants
- Variables
- type DeployCmd
- type DeployInfo
- type DeployStatus
- type DestroyCmd
- type Handler
- type HealthStatus
- type LogsCmd
- type MockHandler
- func (m *MockHandler) Deployment(ctx context.Context, organizationID string, project models.Project, ...) error
- func (m *MockHandler) Status(ctx context.Context, organization models.Organization, project models.Project) error
- func (m *MockHandler) TailLogs(ctx context.Context, region string, env string) error
- type PromoteCmd
- type ResetCmd
- type StatusCmd
Constants ¶
View Source
const ( DeploymentTypeDeploy = "deploy" DeploymentTypeForceDeploy = "forceDeploy" DeploymentTypeDestroy = "destroy" DeploymentTypeReset = "reset" DeploymentTypePromote = "promote" DeployStatusFailed DeployStatus = "failed" DeployStatusCreated DeployStatus = "created" DeployStatusRemoved DeployStatus = "removed" DeployEnvPreview = "dev" DeployEnvLive = "prod" )
Variables ¶
View Source
var CmdPlugin struct { Deploy *DeployCmd `cmd:"" group:"Cloud Management Commands:" help:"Deploy your World Forge project to a TEST environment in the cloud"` Status *StatusCmd `cmd:"" group:"Cloud Management Commands:" help:"Check the status of your deployed World Forge project"` Promote *PromoteCmd `cmd:"" group:"Cloud Management Commands:" help:"Deploy your game project to a LIVE environment in the cloud"` Destroy *DestroyCmd `cmd:"" group:"Cloud Management Commands:" help:"Remove your game project's deployed infrastructure from the cloud"` Reset *ResetCmd `cmd:"" group:"Cloud Management Commands:" help:"Restart your game project with a clean state"` Logs *LogsCmd `cmd:"" group:"Cloud Management Commands:" help:"Tail logs for your game project"` }
Functions ¶
This section is empty.
Types ¶
type DeployCmd ¶
type DeployCmd struct {
Context context.Context `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
Force bool ` flag:"" help:"Force the deployment"`
}
type DeployInfo ¶
type DeployInfo struct {
DeployType string
DeployStatus DeployStatus
DeployDisplay string
}
type DeployStatus ¶
type DeployStatus string
type DestroyCmd ¶
type DestroyCmd struct {
Context context.Context `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
}
func (*DestroyCmd) Run ¶
func (c *DestroyCmd) Run() error
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( apiClient api.ClientInterface, configService config.ServiceInterface, projectHandler interfaces.ProjectHandler, inputHandler input.ServiceInterface, ) *Handler
func (*Handler) Deployment ¶
type HealthStatus ¶
type HealthStatus string
const ( HealthStatusHealthy HealthStatus = "healthy" HealthStatusUnhealthy HealthStatus = "unhealthy" HealthStatusOffline HealthStatus = "offline" )
type LogsCmd ¶
type MockHandler ¶
func (*MockHandler) Deployment ¶
func (*MockHandler) Status ¶
func (m *MockHandler) Status(ctx context.Context, organization models.Organization, project models.Project) error
type PromoteCmd ¶
type PromoteCmd struct {
Context context.Context `kong:"-"`
Dependencies cmdsetup.Dependencies `kong:"-"`
}
func (*PromoteCmd) Run ¶
func (c *PromoteCmd) Run() error
Click to show internal directories.
Click to hide internal directories.