package local
import "github.com/containerd/containerd/content/local"
Index ¶
- func NewLabeledStore(root string, ls LabelStore) (content.Store, error)
- func NewStore(root string) (content.Store, error)
- func OpenReader(p string) (content.ReaderAt, error)
- type LabelStore
Functions ¶
func NewLabeledStore ¶
func NewLabeledStore(root string, ls LabelStore) (content.Store, error)
NewLabeledStore returns a new content store using the provided label store
Note: content stores which are used underneath a metadata store may not require labels and should use `NewStore`. `NewLabeledStore` is primarily useful for tests or standalone implementations.
func NewStore ¶
NewStore returns a local content store
func OpenReader ¶
OpenReader creates ReaderAt from a file
Types ¶
type LabelStore ¶
type LabelStore interface { // Get returns all the labels for the given digest Get(digest.Digest) (map[string]string, error) // Set sets all the labels for a given digest Set(digest.Digest, map[string]string) error // Update replaces the given labels for a digest, // a key with an empty value removes a label. Update(digest.Digest, map[string]string) (map[string]string, error) }
LabelStore is used to store mutable labels for digests
Source Files ¶
locks.go readerat.go store.go store_unix.go writer.go
- Version
- v1.5.0-rc.0
- Published
- Apr 9, 2021
- Platform
- darwin/amd64
- Imports
- 22 packages
- Last checked
- 37 seconds ago –
Tools for package owners.