database

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversionDatabase

type ConversionDatabase interface {
	GetEntryForRepo(ctx context.Context, host string, repository string, chainID string) *Entry
	GetCrossRepoEntries(ctx context.Context, host string, chainID string) []*Entry
	CreateEntry(ctx context.Context, host string, repository string, convertedDigest digest.Digest, chainID string, size int64) error
	DeleteEntry(ctx context.Context, host string, repository string, chainID string) error
}

func NewSqlDB

func NewSqlDB(db *sql.DB) ConversionDatabase

type Entry

type Entry struct {
	ConvertedDigest digest.Digest
	DataSize        int64
	Repository      string
	ChainID         string
	Host            string
}

Jump to

Keyboard shortcuts

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