provider

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 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.

Jump to

Keyboard shortcuts

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