dao

package
v0.0.0-...-e417875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL