Documentation ¶
Index ¶
- Variables
- func InitCerealManager(ctx context.Context, cerealManager *cereal.Manager, workerCount int, ...) error
- type AuditTaskParameters
- type AuditWorkflowParameters
- type AuditWorkflowPayload
- type Execute
- type ExecuteCommand
- type LicenseAuditTask
- type LicenseAuditWorkflow
- func (s *LicenseAuditWorkflow) OnCancel(w cereal.WorkflowInstance, ev cereal.CancelEvent) cereal.Decision
- func (s *LicenseAuditWorkflow) OnStart(w cereal.WorkflowInstance, ev cereal.StartEvent) cereal.Decision
- func (s *LicenseAuditWorkflow) OnTaskComplete(w cereal.WorkflowInstance, ev cereal.TaskCompleteEvent) cereal.Decision
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkflowName = cereal.NewWorkflowName("license-audit") LicenseAuditTaskName = cereal.NewTaskName("license-audit-task") ScheduleName = "license-audit" Command = "HAB_LICENSE=accept-no-persist hab pkg exec chef/license-audit license-audit report automate -s %s -e %s -o %s" CleanCVSFilesCommand = "HAB_LICENSE=accept-no-persist hab pkg exec chef/license-audit license-audit report automate clean" OutputFileName = "license-audit-report" CleanReportFiles = "rm -rf %s.*" )
Functions ¶
Types ¶
type AuditTaskParameters ¶
type AuditTaskParameters struct { }
type AuditWorkflowParameters ¶
type AuditWorkflowParameters struct {
Retries int
}
type AuditWorkflowPayload ¶
type AuditWorkflowPayload struct {
Retries int
}
type ExecuteCommand ¶
type LicenseAuditTask ¶
type LicenseAuditTask struct { Command string ExecuteCommand ExecuteCommand EndPointURl string }
type LicenseAuditWorkflow ¶
type LicenseAuditWorkflow struct { }
func (*LicenseAuditWorkflow) OnCancel ¶
func (s *LicenseAuditWorkflow) OnCancel(w cereal.WorkflowInstance, ev cereal.CancelEvent) cereal.Decision
func (*LicenseAuditWorkflow) OnStart ¶
func (s *LicenseAuditWorkflow) OnStart(w cereal.WorkflowInstance, ev cereal.StartEvent) cereal.Decision
func (*LicenseAuditWorkflow) OnTaskComplete ¶
func (s *LicenseAuditWorkflow) OnTaskComplete(w cereal.WorkflowInstance, ev cereal.TaskCompleteEvent) cereal.Decision
Click to show internal directories.
Click to hide internal directories.