deployment

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusRunning   = "running"
	StatusSucceeded = "succeeded"
	StatusFailed    = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Id          string `json:"id"`
	App         string `json:"app"`
	Environment string `json:"environment"`
	Status      string `json:"status"`
	// contains filtered or unexported fields
}

func New

func New(s *Spec, l *logrus.Logger) *Deployment

func (*Deployment) Fail

func (d *Deployment) Fail(err error)

func (*Deployment) Log

func (d *Deployment) Log(msg string)

func (*Deployment) Succeed

func (d *Deployment) Succeed()

type Spec

type Spec struct {
	App       *application.Application `json:"app"`
	TargetEnv string                   `json:"target_env"`
	Artifact  string                   `json:"artifact"`
}

Spec describes the deployment specification supplied by the client to deploy a particular application.

func (*Spec) CheckIsValid

func (s *Spec) CheckIsValid() error

Jump to

Keyboard shortcuts

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