Documentation ¶
Index ¶
Constants ¶
View Source
const (
// RedeployMetaKey ...
RedeployMetaKey = "nomadctl_redeploy"
)
Variables ¶
This section is empty.
Functions ¶
func ReDeploy ¶
func ReDeploy(i *RedeploymentInput) (bool, error)
ReDeploy redeploys an existing remote job
Types ¶
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
Deployment is the internal representation of a Nomadctl deployment
func NewDeployment ¶
func NewDeployment(i *NewDeploymentInput) (d *Deployment, err error)
NewDeployment generates a new deployment
func (*Deployment) Deploy ¶
func (d *Deployment) Deploy() (success bool, err error)
Deploy performs a deployment
type NewDeploymentInput ¶
type NewDeploymentInput struct { Job *api.Job // the Nomad Job to deploy Jobspec *[]byte // the nomad job spec to be converted to a Nomad Job EnforceIndex bool // job will only be registered if JobModifyIndex matches the current job's index JobModifyIndex uint64 // index to enforce job state UseTemplateCount bool // whether the job will get its group counts from template rather than remote job AutoPromote bool // whether a canary job should be automatically promoted Verbose bool // whether long UUIDs should be logged }
NewDeploymentInput represents the input for a new deployment
Click to show internal directories.
Click to hide internal directories.