app

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateVersion added in v0.0.11

func UpdateVersion(nsConfig api.Config, appId int64, envName, 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

	// 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.CategoryName]map[string]Provider

func (Providers) Find

func (p Providers) Find(category types.CategoryName, type_ string) 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
serverless
static-site

Jump to

Keyboard shortcuts

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