database

package
v0.0.0-...-1858810 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLite3    = "sqlite3"
	Postgresql = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	NewTx(ctx context.Context) (*sql.Tx, error)
	CreateRepository(tx *sql.Tx, reference, tag, digest string) error
	DeleteRepository(id string) error
	MarkDeleteRepository(tx *sql.Tx, id string) error
	UpdateDigestRepository(tx *sql.Tx, project, tag, digest string) error
	GetRepository(tx *sql.Tx, project, tag string) (*structs.Repository, error)
	GetRepositoryByID(id string) (*structs.Repository, error)
}

func New

func New(cfg *config.Config) (DB, func(), error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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