ocisif

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const SquashfsLayerMediaType types.MediaType = "application/vnd.sylabs.image.layer.v1.squashfs"

TODO - Replace when exported from SIF / oci-tools

Variables

View Source
var ErrFailedSquashfsConversion = errors.New("could not convert layer to squashfs")

Functions

func AuthOptn

func AuthOptn(ociAuth *ocitypes.DockerAuthConfig) remote.Option

func PullOCISIF

func PullOCISIF(ctx context.Context, imgCache *cache.Handle, directTo, pullFrom string, opts PullOptions) (imagePath string, err error)

PullOCISIF will create an OCI-SIF image in the cache if directTo="", or a specific file if directTo is set.

func PushOCISIF

func PushOCISIF(_ context.Context, sourceFile, destRef string, ociAuth *ocitypes.DockerAuthConfig) error

PushOCISIF pushes a single image from sourceFile to the OCI registry destRef.

FIXME: Use context for cancellation.

Types

type PullOptions

type PullOptions struct {
	TmpDir      string
	OciAuth     *ocitypes.DockerAuthConfig
	DockerHost  string
	NoHTTPS     bool
	NoCleanUp   bool
	Platform    ggcrv1.Platform
	ReqAuthFile string
}

Jump to

Keyboard shortcuts

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