package database
import "github.com/containerd/accelerated-container-image/cmd/convertor/database"
Index ¶
Types ¶
type ConversionDatabase ¶
type ConversionDatabase interface { // Layer Entries CreateLayerEntry(ctx context.Context, host, repository string, convertedDigest digest.Digest, chainID string, size int64) error GetLayerEntryForRepo(ctx context.Context, host, repository, chainID string) *LayerEntry GetCrossRepoLayerEntries(ctx context.Context, host, chainID string) []*LayerEntry DeleteLayerEntry(ctx context.Context, host, repository, chainID string) error // Manifest Entries CreateManifestEntry(ctx context.Context, host, repository, mediatype string, original, convertedDigest digest.Digest, size int64) error GetManifestEntryForRepo(ctx context.Context, host, repository, mediatype string, original digest.Digest) *ManifestEntry GetCrossRepoManifestEntries(ctx context.Context, host, mediatype string, original digest.Digest) []*ManifestEntry DeleteManifestEntry(ctx context.Context, host, repository, mediatype string, original digest.Digest) error }
func NewSqlDB ¶
func NewSqlDB(db *sql.DB) ConversionDatabase
type LayerEntry ¶
type LayerEntry struct { ConvertedDigest digest.Digest DataSize int64 Repository string ChainID string Host string }
type ManifestEntry ¶
type ManifestEntry struct { ConvertedDigest digest.Digest OriginalDigest digest.Digest DataSize int64 Repository string Host string MediaType string }
Source Files ¶
- Version
- v1.2.0
- Published
- Aug 9, 2024
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 17 hours ago –
Tools for package owners.