evidence

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(items []string, code string) []string

Append adds code to items unless it is already present.

func Has

func Has(items []string, code string) bool

Has reports whether items contains code.

func HasConfig

func HasConfig(items []Config, code string) bool

HasConfig reports whether items contains a config evidence item with code.

Types

type Config

type Config struct {
	Code    string `json:"code"`
	Source  string `json:"source,omitempty"`
	Message string `json:"message,omitempty"`
}

Config records a config-policy evidence code plus optional provenance.

Jump to

Keyboard shortcuts

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