Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobSumService ¶
type BlobSumService struct {
// contains filtered or unexported fields
}
BlobSumService maps layer IDs to a set of known blobsums for the layer.
func NewBlobSumService ¶
func NewBlobSumService(store Store) *BlobSumService
NewBlobSumService creates a new blobsum mapping service.
func (*BlobSumService) Add ¶
Add associates a blobsum with a layer DiffID. If too many blobsums are present, the oldest one is dropped.
func (*BlobSumService) GetBlobSums ¶
GetBlobSums finds the blobsums associated with a layer DiffID.
type FSMetadataStore ¶
FSMetadataStore uses the filesystem to associate metadata with layer and image IDs.
func NewFSMetadataStore ¶
func NewFSMetadataStore(basePath string) (*FSMetadataStore, error)
NewFSMetadataStore creates a new filesystem-based metadata store.
type Store ¶
type Store interface { // Get retrieves data by namespace and key. Get(namespace string, key string) ([]byte, error) // Set writes data indexed by namespace and key. Set(namespace, key string, value []byte) error }
Store implements a K/V store for mapping distribution-related IDs to on-disk layer IDs and image IDs. The namespace identifies the type of mapping (i.e. "v1ids" or "artifacts"). MetadataStore is goroutine-safe.
type V1IDService ¶
type V1IDService struct {
// contains filtered or unexported fields
}
V1IDService maps v1 IDs to layers on disk.
func NewV1IDService ¶
func NewV1IDService(store Store) *V1IDService
NewV1IDService creates a new V1 ID mapping service.