ocipull

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPolicyJSONPath = ""

DefaultPolicyJSONPath should be overwritten at build time with the real path to the directory where the shipped policy.json file is located. This can either be absolute path or a relative path. If it is relative it will be resolved relative to the podman binary and NOT the CWD.

use "-X github.com/containers/podman/v5/pkg/machine/ocipull.DefaultPolicyJSONPath=/somepath" in go ldflags to overwrite this

Functions

func GetDiskArtifactReference

func GetDiskArtifactReference(ctx context.Context, imgSrc types.ImageSource, opts *DiskArtifactOpts) (digest.Digest, error)

func GetLocalBlob

func GetLocalBlob(ctx context.Context, path string) (*types.BlobInfo, error)

func Pull

func Pull(ctx context.Context, imageInput types.ImageReference, localDestPath *define.VMFile, options *PullOptions) error

Pull `imageInput` from a container registry to `sourcePath`.

Types

type DiskArtifactOpts

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

type Disker

type Disker interface {
	Get() error
}

type OCIArtifactDisk

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

func NewOCIArtifactPull

func NewOCIArtifactPull(ctx context.Context, dirs *define.MachineDirs, endpoint string, vmName string, vmType define.VMType, finalPath *define.VMFile, skipTlsVerify types.OptionalBool) (*OCIArtifactDisk, error)

func (*OCIArtifactDisk) Get

func (o *OCIArtifactDisk) Get() error

func (*OCIArtifactDisk) GetNoCompress

func (o *OCIArtifactDisk) GetNoCompress() (func(), error)

func (*OCIArtifactDisk) OriginalFileName

func (o *OCIArtifactDisk) OriginalFileName() (string, string)

type OSVersion

type OSVersion struct {
	*semver.Version
}

type PullOptions

type PullOptions struct {
	// Skip TLS verification when accessing the registry.
	SkipTLSVerify types.OptionalBool
	// [username[:password] to use when connecting to the registry.
	Credentials string
	// Quiet the progress bars when pushing.
	Quiet bool
}

PullOptions includes data to alter certain knobs when pulling a source image.

Jump to

Keyboard shortcuts

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