layout

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 10 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) 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) 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