dir

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ImageLayoutVersion is the version of the image layout we support. This
	// value is *not* the same as imagespec.Version, and the meaning of this
	// field is still under discussion in the spec. For now we'll just hardcode
	// the value and hope for the best.
	ImageLayoutVersion = "1.0.0"
)

Variables

View Source
var Driver cas.Driver = dirDriver{}

Driver is an implementation of drivers.Driver for local directory-backed OCI image layouts.

Functions

func Create

func Create(path string) error

Create creates a new OCI image layout at the given path. If the path already exists, os.ErrExist is returned. However, all of the parent components of the path will be created if necessary.

func Open

func Open(path string) (cas.Engine, error)

Open opens a new reference to the directory-backed OCI image referenced by the provided path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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