layerstore

package
v0.1.0-beta.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 New

func New(db *storage.DB) (*LayerStore, error)

New creates a new LayerStore

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

func (s *LayerStore) StoreLayer(digest string, reader io.Reader) (int64, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL