Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBlobDigestMismatch could potentially be returned when PutBlob() is given a blob // with a digest-based name that doesn't match its contents. // Deprecated: PutBlob() doesn't do this any more (it just accepts the caller’s value), // and there is no known user of this error. ErrBlobDigestMismatch = stderrors.New("blob digest mismatch") // ErrBlobSizeMismatch is returned when PutBlob() is given a blob // with an expected size that doesn't match the reader. ErrBlobSizeMismatch = stderrors.New("blob size mismatch") // ErrNoSuchImage is returned when we attempt to access an image which // doesn't exist in the storage area. ErrNoSuchImage = storage.ErrNotAnImage )
View Source
var ( // Transport is an ImageTransport that uses either a default // storage.Store or one that's it's explicitly told to use. Transport StoreTransport = &storageTransport{} // ErrInvalidReference is returned when ParseReference() is passed an // empty reference. ErrInvalidReference = errors.New("invalid reference") // ErrPathNotAbsolute is returned when a graph root is not an absolute // path name. ErrPathNotAbsolute = errors.New("path name is not absolute") )
Functions ¶
This section is empty.
Types ¶
type StoreTransport ¶
type StoreTransport interface { types.ImageTransport // SetStore sets the default store for this transport. SetStore(storage.Store) // GetStoreIfSet returns the default store for this transport, or nil if not set/determined yet. GetStoreIfSet() storage.Store // GetImage retrieves the image from the transport's store that's named // by the reference. GetImage(types.ImageReference) (*storage.Image, error) // GetStoreImage retrieves the image from a specified store that's named // by the reference. GetStoreImage(storage.Store, types.ImageReference) (*storage.Image, error) // ParseStoreReference parses a reference, overriding any store // specification that it may contain. ParseStoreReference(store storage.Store, reference string) (*storageReference, error) // NewStoreReference creates a reference for (named@ID) in store. // either of name or ID can be unset; named must not be a reference.IsNameOnly. NewStoreReference(store storage.Store, named reference.Named, id string) (*storageReference, error) // SetDefaultUIDMap sets the default UID map to use when opening stores. SetDefaultUIDMap(idmap []idtools.IDMap) // SetDefaultGIDMap sets the default GID map to use when opening stores. SetDefaultGIDMap(idmap []idtools.IDMap) // DefaultUIDMap returns the default UID map used when opening stores. DefaultUIDMap() []idtools.IDMap // DefaultGIDMap returns the default GID map used when opening stores. DefaultGIDMap() []idtools.IDMap }
StoreTransport is an ImageTransport that uses a storage.Store to parse references, either its own default or one that it's told to use.
Click to show internal directories.
Click to hide internal directories.