provider

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	ID() string
	Name() string
	Metadata() map[string]string
	RunAll(ctx context.Context) (ProviderResult, error)
	RunRuleset(ctx context.Context, rulesetID, rulesetVersion string) (ruleset.RulesetResult, error)
	RunRule(ctx context.Context, rulesetID, rulesetVersion, ruleID string) (rule.RuleResult, error)
}

Provider defines a Diki provider.

type ProviderFromConfigFunc

type ProviderFromConfigFunc func(conf config.ProviderConfig) (Provider, error)

ProviderFromConfigFunc constructs a Provider from ProviderConfig.

type ProviderResult

type ProviderResult struct {
	ProviderID     string
	ProviderName   string
	Metadata       map[string]string
	RulesetResults []ruleset.RulesetResult
}

ProviderResult is the result of a provider run.

Directories

Path Synopsis
ruleset/disak8sstig/rules
Package rules implements rules that correspond to the latest supported ruleset version.
Package rules implements rules that correspond to the latest supported ruleset version.
ruleset/disak8sstig/rules
Package rules implements rules that correspond to the latest supported ruleset version.
Package rules implements rules that correspond to the latest supported ruleset version.
ruleset/disak8sstig/rules
Package rules implements rules that correspond to the latest supported ruleset version.
Package rules implements rules that correspond to the latest supported ruleset version.

Jump to

Keyboard shortcuts

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