licenseaudit

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func InitCerealManager

func InitCerealManager(ctx context.Context, cerealManager *cereal.Manager, workerCount int, endpointurl string, frequency string, interval int) error

Types

type AuditTaskParameters

type AuditTaskParameters struct {
}

type AuditWorkflowParameters

type AuditWorkflowParameters struct {
	Retries int
}

type AuditWorkflowPayload

type AuditWorkflowPayload struct {
	Retries int
}

type Execute

type Execute struct {
	// contains filtered or unexported fields
}

func NewExecute

func NewExecute(log logger.Logger) *Execute

func (Execute) Execute

func (e Execute) Execute(command string) (string, error)

type ExecuteCommand

type ExecuteCommand interface {
	Execute(command string) (string, error)
}

type LicenseAuditTask

type LicenseAuditTask struct {
	Command        string
	ExecuteCommand ExecuteCommand
	EndPointURl    string
}

func (*LicenseAuditTask) Run

func (t *LicenseAuditTask) Run(ctx context.Context, task cereal.Task) (interface{}, error)

type LicenseAuditWorkflow

type LicenseAuditWorkflow struct {
}

func (*LicenseAuditWorkflow) OnCancel

func (*LicenseAuditWorkflow) OnStart

func (*LicenseAuditWorkflow) OnTaskComplete

Jump to

Keyboard shortcuts

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