deployment

package
v0.0.124 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoDeployment = errors.New("No deployment available")

Functions

This section is empty.

Types

type DeploymentMonitor

type DeploymentMonitor struct {
	AppID string

	DeploymentStarted   func(idx int, deployment *api.DeploymentStatus) error
	DeploymentUpdated   func(deployment *api.DeploymentStatus, updatedAllocs []*api.AllocationStatus) error
	DeploymentFailed    func(deployment *api.DeploymentStatus, failedAllocs []*api.AllocationStatus) error
	DeploymentSucceeded func(deployment *api.DeploymentStatus) error
	// contains filtered or unexported fields
}

func NewDeploymentMonitor

func NewDeploymentMonitor(client *api.Client, appID string) *DeploymentMonitor

func (*DeploymentMonitor) Error

func (dm *DeploymentMonitor) Error() error

func (*DeploymentMonitor) Failed

func (dm *DeploymentMonitor) Failed() bool

func (*DeploymentMonitor) Start

func (dm *DeploymentMonitor) Start(ctx context.Context)

func (*DeploymentMonitor) Success

func (dm *DeploymentMonitor) Success() bool

Jump to

Keyboard shortcuts

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