blobmapping

package
v0.0.0-...-c272109 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	snapshot.Info
	Blob string
}

type Opt

type Opt struct {
	Content     content.Store
	Snapshotter snapshot.Snapshotter
	Root        string
}

type Snapshotter

type Snapshotter struct {
	snapshot.Snapshotter
	// contains filtered or unexported fields
}

func NewSnapshotter

func NewSnapshotter(opt Opt) (*Snapshotter, error)

func (*Snapshotter) GetBlob

func (s *Snapshotter) GetBlob(ctx context.Context, key string) (digest.Digest, 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

func (*Snapshotter) SetBlob

func (s *Snapshotter) SetBlob(ctx context.Context, key string, blob digest.Digest) error

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

func (s *Snapshotter) Usage(ctx context.Context, key string) (snapshot.Usage, error)

Jump to

Keyboard shortcuts

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