Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAttestation(purl string, definition *attestation.Definition, currentTime time.Time) *attestation.ClearlyDefinedStatement
- func GetPkgDefinition(ctx context.Context, coordinate *coordinates.Coordinate) (*attestation.Definition, error)
- func GetSrcDefinition(ctx context.Context, defType, provider, namespace, name, revision string) (*attestation.Definition, error)
- func NewClearlyDefinedCertifier() certifier.Certifier
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 ¶
NewClearlyDefinedCertifier initializes the the cdCertifier
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.