Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation interface { }
type DocDBRecord ¶
type DocDBRecord struct {
Attestation Attestation
}
func (*DocDBRecord) GetData ¶
func (d *DocDBRecord) GetData() interface{}
func (*DocDBRecord) GetMaterials ¶
func (d *DocDBRecord) GetMaterials() []Material
func (*DocDBRecord) GetType ¶
func (d *DocDBRecord) GetType() string
type Manager ¶
type Manager struct { Opts ManagerOpts // TODO: There should be a way to create a way to prioritize different backends for different types of records Clients []RecordClient }
TODO: Should probably create some creator functions for this
type ManagerOpts ¶
type ManagerOpts struct {
IsTest bool
}
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func GetMongoClient ¶
func GetMongoClient(uri string, db string, collection string) (*MongoClient, error)
type OCIClient ¶
type OCIClient struct {
// contains filtered or unexported fields
}
TODO: Set up trusted keys for records This for now is intended to purely represent records related to a particular image
type OCIRecord ¶
type OCIRecord struct {
Attestation in_toto.ProvenanceStatement
}
Uses cosign to do most of the heavy lifting.
func (*OCIRecord) GetMaterials ¶
type RecordClient ¶
type RekorClient ¶
type RekorClient struct {
// contains filtered or unexported fields
}
type RekorRecord ¶
type RekorRecord struct { Body Body Attestation Attestation }
func (*RekorRecord) GetData ¶
func (r *RekorRecord) GetData() interface{}
func (*RekorRecord) GetMaterials ¶
func (r *RekorRecord) GetMaterials() []Material
func (*RekorRecord) GetType ¶
func (r *RekorRecord) GetType() string
type URIFollowerClient ¶
type URIFollowerClient struct{}
TODO: This client is intended to follow URIs found in records. This will require some consensus in the community
Click to show internal directories.
Click to hide internal directories.