dao

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 6 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 the artifact trash
	Create(ctx context.Context, artifactrsh *model.ArtifactTrash) (id int64, err error)
	// Delete the artifact trash specified by ID
	Delete(ctx context.Context, id int64) (err error)
	// Filter lists the artifact that needs to be cleaned, which creation_time must be less than or equal to the cut-off.
	Filter(ctx context.Context, cutOff time.Time) (arts []model.ArtifactTrash, err error)
	// Flush cleans the trash table record, which creation_time must be less than or equal to the cut-off.
	Flush(ctx context.Context, cutOff time.Time) (err error)
}

DAO is the data access object interface for artifact trash

func New

func New() DAO

New returns an instance of the default DAO

Jump to

Keyboard shortcuts

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