clearlydefined

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODUCER_ID string = "guacsec/guac"
	CDCollector string = "clearlydefined"
)

Variables

View Source
var ErrOSVComponentTypeMismatch error = errors.New("rootComponent type is not []*root_package.PackageNode")

Functions

func CreateAttestation

func CreateAttestation(purl string, definition *attestation.Definition, currentTime time.Time) *attestation.ClearlyDefinedStatement

func GetPkgDefinition

func GetPkgDefinition(ctx context.Context, coordinate *coordinates.Coordinate) (*attestation.Definition, error)

GetPkgDefinition uses the coordinates to query clearly defined for license definition

func GetSrcDefinition

func GetSrcDefinition(ctx context.Context, defType, provider, namespace, name, revision string) (*attestation.Definition, error)

GetSrcDefinition uses the source coordinates found from the package definition to query clearly defined for license definition

func NewClearlyDefinedCertifier

func NewClearlyDefinedCertifier() certifier.Certifier

NewClearlyDefinedCertifier initializes the the cdCertifier

Types

This section is empty.

Jump to

Keyboard shortcuts

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