Documentation ¶
Index ¶
- func AskForConfirmation() bool
- func DisplayJobDiff(diff nomad.JobDiff)
- type NomadHelper
- func (n *NomadHelper) ApplyChanges(job *nomad.Job, wg *sync.WaitGroup)
- func (n *NomadHelper) BackupJobs()
- func (n *NomadHelper) DeleteAllJobs(force bool, autoApprove bool, purge bool, verbose bool)
- func (n *NomadHelper) Init()
- func (n *NomadHelper) InitConfig(config *nomad.Config)
- func (n *NomadHelper) ListJobs(verbose bool, jobType string)
- func (n *NomadHelper) ScaleInJobs(force bool, verbose bool)
- func (n *NomadHelper) ScaleOutJobs(force bool, verbose bool)
- type ScaleType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
func AskForConfirmation() bool
AskForConfirmation prompts the user for confirmation before proceeding
func DisplayJobDiff ¶
DisplayJobDiff prints the simplified diff between job versions
Types ¶
type NomadHelper ¶
NomadHelper provides custodian helper functions
func (*NomadHelper) ApplyChanges ¶
func (n *NomadHelper) ApplyChanges(job *nomad.Job, wg *sync.WaitGroup)
ApplyChanges will register the job and any changes it has with Nomad
func (*NomadHelper) BackupJobs ¶
func (n *NomadHelper) BackupJobs()
BackupJobs will write JSON backups of all registered job
func (*NomadHelper) DeleteAllJobs ¶
func (n *NomadHelper) DeleteAllJobs(force bool, autoApprove bool, purge bool, verbose bool)
DeleteAllJobs deregisters all jobs currently running in Nomad
func (*NomadHelper) InitConfig ¶
func (n *NomadHelper) InitConfig(config *nomad.Config)
InitConfig will initialize the NomadHelper object
func (*NomadHelper) ListJobs ¶
func (n *NomadHelper) ListJobs(verbose bool, jobType string)
ListJobs scales all jobs in to count=1 or out to the jobs original count
func (*NomadHelper) ScaleInJobs ¶
func (n *NomadHelper) ScaleInJobs(force bool, verbose bool)
ScaleInJobs scales all jobs in to count=1
func (*NomadHelper) ScaleOutJobs ¶
func (n *NomadHelper) ScaleOutJobs(force bool, verbose bool)
ScaleOutJobs scales all jobs the original count
Click to show internal directories.
Click to hide internal directories.