Documentation ¶
Index ¶
- type ArchivistaSource
- type CollectionEnvelope
- type CollectionVerificationResult
- type ErrDuplicateReference
- type MemorySource
- func (s *MemorySource) LoadBytes(reference string, data []byte) error
- func (s *MemorySource) LoadEnvelope(reference string, env dsse.Envelope) error
- func (s *MemorySource) LoadFile(path string) error
- func (s *MemorySource) LoadReader(reference string, r io.Reader) error
- func (s *MemorySource) Search(ctx context.Context, collectionName string, ...) ([]CollectionEnvelope, error)
- type MultiSource
- type Sourcer
- type VerifiedSource
- type VerifiedSourcer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchivistaSource ¶
type ArchivistaSource struct {
// contains filtered or unexported fields
}
func NewArchvistSource ¶
func NewArchvistSource(client *archivista.Client) *ArchivistaSource
func (*ArchivistaSource) Search ¶
func (s *ArchivistaSource) Search(ctx context.Context, collectionName string, subjectDigests, attestations []string) ([]CollectionEnvelope, error)
type CollectionEnvelope ¶
type CollectionEnvelope struct { Envelope dsse.Envelope Statement intoto.Statement Collection attestation.Collection Reference string }
type CollectionVerificationResult ¶ added in v0.4.0
type CollectionVerificationResult struct { Verifiers []cryptoutil.Verifier ValidFunctionaries []cryptoutil.Verifier CollectionEnvelope Errors []error Warnings []string }
type ErrDuplicateReference ¶
type ErrDuplicateReference string
func (ErrDuplicateReference) Error ¶
func (e ErrDuplicateReference) Error() string
type MemorySource ¶
type MemorySource struct {
// contains filtered or unexported fields
}
func NewMemorySource ¶
func NewMemorySource() *MemorySource
func (*MemorySource) LoadBytes ¶
func (s *MemorySource) LoadBytes(reference string, data []byte) error
func (*MemorySource) LoadEnvelope ¶
func (s *MemorySource) LoadEnvelope(reference string, env dsse.Envelope) error
func (*MemorySource) LoadFile ¶
func (s *MemorySource) LoadFile(path string) error
func (*MemorySource) LoadReader ¶
func (s *MemorySource) LoadReader(reference string, r io.Reader) error
func (*MemorySource) Search ¶
func (s *MemorySource) Search(ctx context.Context, collectionName string, subjectDigests, attestations []string) ([]CollectionEnvelope, error)
type MultiSource ¶
type MultiSource struct {
// contains filtered or unexported fields
}
func NewMultiSource ¶
func NewMultiSource(sources ...Sourcer) *MultiSource
func (*MultiSource) Search ¶
func (s *MultiSource) Search(ctx context.Context, collectionName string, subjectDigests, attestations []string) ([]CollectionEnvelope, error)
Search concurrently queries all sources and returns the combined results.
type VerifiedSource ¶
type VerifiedSource struct {
// contains filtered or unexported fields
}
func NewVerifiedSource ¶
func NewVerifiedSource(source Sourcer, verifyOpts ...dsse.VerificationOption) *VerifiedSource
func (*VerifiedSource) Search ¶
func (s *VerifiedSource) Search(ctx context.Context, collectionName string, subjectDigests, attestations []string) ([]CollectionVerificationResult, error)
type VerifiedSourcer ¶
Click to show internal directories.
Click to hide internal directories.