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
Click to show internal directories.
Click to hide internal directories.