dir

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 16 Imported by: 13

Documentation

Overview

Package dir implements the basic local directory-backed layout backend for the OCI content-addressible store.

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 = ispec.ImageLayoutVersion // "1.0.0"

)

Variables

This section is empty.

Functions

func Create

func Create(path string) (Err 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
⌂ 换网址