Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define more than one Type per Attestor #291

Closed

Conversation

ChaosInTheCRD
Copy link
Collaborator

What this PR does / why we need it

This PR introduces the ability to define more than one Predicate Type through the Type method in the Attestor interface. The first string in the TypeSet is treated as the "primary" type (e.g., https://witness.dev/attestations/sbom/v0.1) and can be returned with the First() function.

When initializing the attestationsByType map, each type in the TypeSet for a given attestor is added as a key with the attestor as its value.

@ChaosInTheCRD
Copy link
Collaborator Author

Closing this as it is a duplicate of work performed by @jkjell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant