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
Click to show internal directories.
Click to hide internal directories.