runner

package
v0.0.0-...-6794c67 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScanJobWorkflowName = cereal.NewWorkflowName("scan-job-workflow")

	CreateChildTaskName    = cereal.NewTaskName("create-child")
	ResolveJobTaskName     = cereal.NewTaskName("resolve-job")
	ScanJobTaskName        = cereal.NewTaskName("scan-job")
	ScanJobSummaryTaskName = cereal.NewTaskName("scan-job-summary")
)
View Source
var ControlResultsLimit int = 50

ControlResultsLimit used for configuring inspec exec command, passed in via config flag

View Source
var ESClient *ingestic.ESClient

Set from compliance.go to call the ElasticSearch backend

View Source
var ListenPort int = 2133
View Source
var RunTimeLimit float32 = 1.0

RunTimeLimit used for report post processing to reduce the size of the report.

Functions

func InitCerealManager

func InitCerealManager(m *cereal.Manager, workerCount int, ingestClient ingest.ComplianceIngesterServiceClient,
	scanner *scanner.Scanner, resolver *resolver.Resolver, remoteInspecVersion string) error

Types

type CreateChildTask

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

func (*CreateChildTask) Run

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

type InspecJobSummaryTask

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

func (*InspecJobSummaryTask) Run

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

type InspecJobTask

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

func (*InspecJobTask) Run

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

type LostJob

type LostJob struct {
	JobID  string
	NodeID string
}

type ResolveTask

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

func (*ResolveTask) Run

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

type ScanJobWorkflow

type ScanJobWorkflow struct{}

func (*ScanJobWorkflow) OnCancel

func (*ScanJobWorkflow) OnStart

func (*ScanJobWorkflow) OnTaskComplete

type ScanJobWorkflowPayload

type ScanJobWorkflowPayload struct {
	OutstandingJobs  int
	ParentJobID      string
	ChildJobID       string
	OverallJobStatus string
	LostJobs         []LostJob
	StartTime        time.Time
}

Jump to

Keyboard shortcuts

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