mapper

package
v0.0.0-...-ebe1833 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

ID represents the identity for a transformer.

func NewID

func NewID(id string) ID

NewID returns a new ID for a given id string.

type Mapper

type Mapper interface {
	PluginName() ID
	Map(policy api.Policy, scope Scope) api.Compliance
	AddEvaluationPlan(catalogId string, plans ...layer4.AssessmentPlan)
}

Mapper defines a set of methods a plugin must implement for mapping api.Policy into a `gemara` AssessmentPlan.

type Scope

type Scope map[string]layer2.Catalog

Scope defined in scope Layer2 Catalogs by the catalog ID

type Set

type Set map[ID]Mapper

Set defines Transformers by ID

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

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