package blobmapping
import "github.com/moby/buildkit/snapshot/blobmapping"
Index ¶
- func NewSnapshotter(opt Opt) snapshot.Snapshotter
- type DiffPair
- type Info
- type Opt
- type Snapshotter
- func (s *Snapshotter) GetBlob(ctx context.Context, key string) (digest.Digest, digest.Digest, error)
- func (s *Snapshotter) Remove(ctx context.Context, key string) error
- func (s *Snapshotter) SetBlob(ctx context.Context, key string, diffID, blobsum digest.Digest) error
- func (s *Snapshotter) Usage(ctx context.Context, key string) (snapshots.Usage, error)
Functions ¶
func NewSnapshotter ¶
func NewSnapshotter(opt Opt) snapshot.Snapshotter
Types ¶
type DiffPair ¶
type Info ¶
type Opt ¶
type Opt struct { Content content.Store Snapshotter snapshot.SnapshotterBase MetadataStore *metadata.Store }
type Snapshotter ¶
type Snapshotter struct { snapshot.SnapshotterBase // contains filtered or unexported fields }
func (*Snapshotter) GetBlob ¶
func (s *Snapshotter) GetBlob(ctx context.Context, key string) (digest.Digest, digest.Digest, error)
func (*Snapshotter) Remove ¶
func (s *Snapshotter) Remove(ctx context.Context, key string) error
Remove also removes a reference to a blob. If it is a last reference then it deletes it the blob as well Remove is not safe to be called concurrently
func (*Snapshotter) SetBlob ¶
Validates that there is no blob associated with the snapshot. Checks that there is a blob in the content store. If same blob has already been set then this is a noop.
func (*Snapshotter) Usage ¶
Source Files ¶
- Version
- v0.3.3
- Published
- Nov 21, 2018
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 12 hours ago –
Tools for package owners.