Documentation
¶
Index ¶
- type LayerStore
- func (s *LayerStore) AssembleImageTar(req apitypes.ImageAssembleRequest) (string, error)
- func (s *LayerStore) DeleteLayer(digest string) error
- func (s *LayerStore) GetLayerPath(digest string) (string, error)
- func (s *LayerStore) HasLayers(digests []string) (missing, exists []string, err error)
- func (s *LayerStore) StoreLayer(digest string, reader io.Reader) (int64, error)
- func (s *LayerStore) TouchLayers(digests []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayerStore ¶
type LayerStore struct {
// contains filtered or unexported fields
}
LayerStore manages content-addressable layer storage on the filesystem
func (*LayerStore) AssembleImageTar ¶
func (s *LayerStore) AssembleImageTar(req apitypes.ImageAssembleRequest) (string, error)
AssembleImageTar creates a docker-loadable tar from cached layers Returns the path to the temporary tar file (caller must clean up)
func (*LayerStore) DeleteLayer ¶
func (s *LayerStore) DeleteLayer(digest string) error
DeleteLayer removes a layer from storage and database
func (*LayerStore) GetLayerPath ¶
func (s *LayerStore) GetLayerPath(digest string) (string, error)
GetLayerPath returns the filesystem path for a layer
func (*LayerStore) HasLayers ¶
func (s *LayerStore) HasLayers(digests []string) (missing, exists []string, err error)
HasLayers checks multiple digests and returns which exist and which are missing
func (*LayerStore) StoreLayer ¶
StoreLayer saves a layer from a reader and verifies its digest The digest should be in the format "sha256:hexstring"
func (*LayerStore) TouchLayers ¶
func (s *LayerStore) TouchLayers(digests []string) error
TouchLayers updates the last_used_at timestamp for multiple layers
Click to show internal directories.
Click to hide internal directories.