Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Create a system artifact tracking record. Create(ctx context.Context, systemArtifact *model.SystemArtifact) (int64, error) // Get a system artifact tracking record identified by vendor, repository and digest Get(ctx context.Context, vendor, repository, digest string) (*model.SystemArtifact, error) // Delete a system artifact tracking record identified by vendor, repository and digest Delete(ctx context.Context, vendor, repository, digest string) error // List all the system artifact records that match the criteria specified // within the query. List(ctx context.Context, query *q.Query) ([]*model.SystemArtifact, error) // Size returns the sum of all the system artifacts. Size(ctx context.Context) (int64, error) }
DAO defines an data access interface for manging the CRUD and read of system artifact tracking records
func NewSystemArtifactDao ¶
func NewSystemArtifactDao() DAO
NewSystemArtifactDao returns an instance of the system artifact dao layer
Click to show internal directories.
Click to hide internal directories.