processor

package
v0.0.0-...-4da4744 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RunningStatus string = "running"
	FailedStatus  string = "failed"
	SuccessStatus string = "success"
)

Variables

View Source
var (
	ReportWorkflowName = cereal.NewWorkflowName("control-workflow")
	ReportTaskName     = cereal.NewTaskName("control-task")
)

Functions

func BundleReportProjectTagger

func BundleReportProjectTagger(authzClient authz.ProjectsServiceClient) message.CompliancePipe

BundleReportProjectTagger - Build a project tagger processor for InSpec reports

func ComplianceProfile

func ComplianceProfile(client *ingestic.ESClient) message.CompliancePipe

func ComplianceReport

func ComplianceReport(notifierClient notifier.Notifier, automateURL string, enableLargeReporting bool) message.CompliancePipe

func ComplianceShared

func ComplianceShared(in <-chan message.Compliance) <-chan message.Compliance

func ComplianceSummary

func ComplianceSummary(in <-chan message.Compliance) <-chan message.Compliance

func InitCerealManager

func InitCerealManager(cerealManager *cereal.Manager, workerCount int, client *ingestic.ESClient) error

func MapStructsESInSpecReportToControls

func MapStructsESInSpecReportToControls(inspecReport *relaxting.ESInSpecReport) ([]relaxting.Control, []string, error)

func ParseReportCtrlStruct

func ParseReportCtrlStruct(ctx context.Context, client *ingestic.ESClient, reportUuid string, index string) ([]relaxting.Control, []string, error)

Types

type ControlWorkflow

type ControlWorkflow struct {
}

func (*ControlWorkflow) OnCancel

func (*ControlWorkflow) OnStart

func (*ControlWorkflow) OnTaskComplete

type ControlWorkflowParameters

type ControlWorkflowParameters struct {
	ReportUuid string
	Retries    int
	EndTime    time.Time
}

type ControlWorkflowPayload

type ControlWorkflowPayload struct {
	ReportUuid  string
	RetriesLeft int
	Status      string
	EndTime     time.Time
}

type GenerateControlParameters

type GenerateControlParameters struct {
	ReportUuid string
	EndTime    time.Time
}

type GenerateControlTask

type GenerateControlTask struct {
	ESClient *ingestic.ESClient
	Esr      relaxting.ES2Backend
}

func (*GenerateControlTask) Run

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

Jump to

Keyboard shortcuts

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