domain

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactRepository

type ArtifactRepository interface {
	Create(model *models.Artifact) error
	Update(model *models.Artifact) error
	Delete(model *models.Artifact) error
	FindAll() ([]*models.Artifact, error)
	FindAllTimeExpired(now int64) ([]*models.Artifact, error)
	FindAllStatusExpired(flags ...interface{}) ([]*models.Artifact, error)
	FindAllStatusNotBroken() ([]*models.Artifact, error)
	FindAllStatusBroken(flags ...interface{}) ([]*models.Artifact, error)
	FindByID(repoID models.RepoID, artifactID models.ArtifactID, flags ...interface{}) (*models.Artifact, error)
	IterateAll(func(*models.Artifact) (bool, error)) error
}

type RepoRepository

type RepoRepository interface {
	Create(model *models.Repo) error
	FindAll(flags ...interface{}) ([]*models.Repo, error)
	FindByID(id models.RepoID, flags ...interface{}) (*models.Repo, error)
	IterateAll(func(*models.Repo) (bool, error)) error
}

type Repositories

type Repositories interface {
	Repo() RepoRepository
	Artifact() ArtifactRepository
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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