bottle

package
v1.15.21 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package bottle provides functions for managing transfer of bottle objects to and from an OCI registry, including configuring a pulled bottle, and establishing local metadata and file structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBottleMetadataToStore

func AddBottleMetadataToStore(ctx context.Context, btl *bottle.Bottle) error

AddBottleMetadataToStore adds config and manifest data to the DataStore as loose files for oras to find. Another option would be to cache these.

func PushBottle

func PushBottle(ctx context.Context, btl *bottle.Bottle, gt reg.GraphTargeter, reference string, pushCfg PushOptions, rOpts ...ReferrerOption) error

PushBottle copies a bottle to a remote location via oras.ExtendedCopyGraph. ReferrerOptions are used to include refferers of the bottle in the copy.

Types

type PushOptions

type PushOptions struct {
	tbottle.TransferOptions
}

PushOptions provides options for pushing bottles from the localhost to a remote registry.

type ReferrerOption

type ReferrerOption func(ctx context.Context, btl *bottle.Bottle) error

ReferrerOption prepares a bottle's referrers for transfer via oras.ExtendedCopyGraph.

Jump to

Keyboard shortcuts

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