Versions in this module Expand all Collapse all v1 v1.13.1 Feb 8, 2017 Changes in this version + func CheckV2MetadataHMAC(meta *V2Metadata, key []byte) bool + func ComputeV2MetadataHMAC(key []byte, meta *V2Metadata) string + func ComputeV2MetadataHMACKey(authConfig *types.AuthConfig) ([]byte, error) + type FSMetadataStore struct + func NewFSMetadataStore(basePath string) (*FSMetadataStore, error) + func (store *FSMetadataStore) Delete(namespace, key string) error + func (store *FSMetadataStore) Get(namespace string, key string) ([]byte, error) + func (store *FSMetadataStore) Set(namespace, key string, value []byte) error + type Store interface + Delete func(namespace, key string) error + Get func(namespace string, key string) ([]byte, error) + Set func(namespace, key string, value []byte) error + type V1IDService struct + func NewV1IDService(store Store) *V1IDService + func (idserv *V1IDService) Get(v1ID, registry string) (layer.DiffID, error) + func (idserv *V1IDService) Set(v1ID, registry string, id layer.DiffID) error + type V2Metadata struct + Digest digest.Digest + HMAC string + SourceRepository string + type V2MetadataService interface + Add func(diffID layer.DiffID, metadata V2Metadata) error + GetDiffID func(dgst digest.Digest) (layer.DiffID, error) + GetMetadata func(diffID layer.DiffID) ([]V2Metadata, error) + Remove func(metadata V2Metadata) error + TagAndAdd func(diffID layer.DiffID, hmacKey []byte, metadata V2Metadata) error + func NewV2MetadataService(store Store) V2MetadataService