layout

package
v0.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*Layout, error)

New returns a new oci layout.

func (*Layout) AddImage

func (l *Layout) AddImage(ctx context.Context, image ociimage.Image) error

AddImage adds an image to the layout.

func (*Layout) AddIndexManifest added in v0.2.5

func (l *Layout) AddIndexManifest(ctx context.Context, indexManifest *ocispec.Index) error

func (*Layout) Image

func (l *Layout) Image(ctx context.Context, desc ocispec.Descriptor) (ociimage.Image, error)

Image returns the image for the given descriptor.

func (*Layout) Images

func (l *Layout) Images(ctx context.Context) ([]ociimage.Image, error)

Images lists all images.

func (*Layout) IndexImage added in v0.2.5

func (l *Layout) IndexImage(ctx context.Context, desc ocispec.Descriptor) (ociimage.Image, error)

func (*Layout) Indexer

func (l *Layout) Indexer() *indexer.Indexer

Indexer returns the indexer.Indexer of the oci layout.

func (*Layout) ReplaceImage

func (l *Layout) ReplaceImage(ctx context.Context, image ociimage.Image, match descriptormatcher.Matcher) error

ReplaceImage replaces the target image with the new one.

func (*Layout) Store

func (l *Layout) Store() *local.Store

Store returns the backing local.Store of the oci layout.

Jump to

Keyboard shortcuts

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