Documentation ¶
Index ¶
- 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) (snapshot.Usage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshotter ¶
type Snapshotter struct { snapshot.Snapshotter // contains filtered or unexported fields }
func NewSnapshotter ¶
func NewSnapshotter(opt Opt) (*Snapshotter, error)
func (*Snapshotter) Remove ¶
func (s *Snapshotter) Remove(ctx context.Context, key string) error
Remove also removes a refrence 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
Click to show internal directories.
Click to hide internal directories.