cloud

package
v1.9.0-test4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

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"`
}

func (*DeployCmd) Run

func (c *DeployCmd) Run() error

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

func (h *Handler) Deployment(
	ctx context.Context,
	organizationID string,
	project models.Project,
	deployType string,
) error

func (*Handler) Status

func (h *Handler) Status(ctx context.Context, organization models.Organization, project models.Project) error

func (*Handler) TailLogs

func (h *Handler) TailLogs(ctx context.Context, region string, env string) error

type HealthStatus

type HealthStatus string
const (
	HealthStatusHealthy   HealthStatus = "healthy"
	HealthStatusUnhealthy HealthStatus = "unhealthy"
	HealthStatusOffline   HealthStatus = "offline"
)

type LogsCmd

type LogsCmd struct {
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
	Region       string                `` /* 137-byte string literal not displayed */
	Env          string                `` /* 142-byte string literal not displayed */
}

func (*LogsCmd) Run

func (c *LogsCmd) Run() error

type MockHandler

type MockHandler struct {
	mock.Mock
}

func (*MockHandler) Deployment

func (m *MockHandler) Deployment(
	ctx context.Context,
	organizationID string,
	project models.Project,
	deployType string,
) error

func (*MockHandler) Status

func (m *MockHandler) Status(ctx context.Context, organization models.Organization, project models.Project) error

func (*MockHandler) TailLogs

func (m *MockHandler) TailLogs(ctx context.Context, region string, env string) error

type PromoteCmd

type PromoteCmd struct {
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*PromoteCmd) Run

func (c *PromoteCmd) Run() error

type ResetCmd

type ResetCmd struct {
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*ResetCmd) Run

func (c *ResetCmd) Run() error

type StatusCmd

type StatusCmd struct {
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*StatusCmd) Run

func (c *StatusCmd) Run() error

Jump to

Keyboard shortcuts

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