app

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeploy added in v0.0.51

func CreateDeploy(nsConfig api.Config, stackId, appId, envId int64, version string) error

Types

type Details added in v0.0.25

type Details struct {
	App       *types.Application
	Env       *types.Environment
	Workspace *types.Workspace
	Module    *types.Module
}

type Provider

type Provider interface {
	DefaultLogProvider() string
	Push(nsConfig api.Config, details Details, userConfig map[string]string) error
	Deploy(nsConfig api.Config, details Details, userConfig map[string]string) error

	// Exec allows a user to execute a command (usually tunneling) into a running service
	// This only makes sense for container-based providers
	Exec(ctx context.Context, nsConfig api.Config, details Details, userConfig map[string]string) error

	// Ssh allows a user to SSH into a running service
	Ssh(ctx context.Context, nsConfig api.Config, details Details, userConfig map[string]any) error

	// Status returns a high-level status report on the specified app env
	Status(nsConfig api.Config, details Details) (StatusReport, error)

	// StatusDetail returns a detailed status report on the specified app env
	StatusDetail(nsConfig api.Config, details Details) (StatusDetailReports, error)
}

Provider provides a standard interface to run commands against an app Each Operator is responsible for:

  • Collecting necessary information from a workspace's outputs
  • Modifying infrastructure to perform each command (e.g. push, deploy, etc.)
  • Each Provider is specific to Category+Type (Example: category=app/container, type=service/aws-fargate)

type Providers

type Providers map[types.ModuleContractName]Provider

func (Providers) Find

func (p Providers) Find(curModule types.Module) Provider

type StatusDetailReport added in v0.0.26

type StatusDetailReport struct {
	Name    string
	Records StatusRecords
}

type StatusDetailReports added in v0.0.26

type StatusDetailReports []StatusDetailReport

type StatusRecord added in v0.0.26

type StatusRecord struct {
	Fields []string
	Data   map[string]interface{}
}

type StatusRecords added in v0.0.26

type StatusRecords []StatusRecord

type StatusReport added in v0.0.26

type StatusReport struct {
	Fields []string
	Data   map[string]interface{}
}

Directories

Path Synopsis
container
server
serverless
static-site

Jump to

Keyboard shortcuts

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