Documentation
¶
Index ¶
- Variables
- func GetDiskArtifactReference(ctx context.Context, imgSrc types.ImageSource, opts *DiskArtifactOpts) (digest.Digest, error)
- func GetLocalBlob(ctx context.Context, path string) (*types.BlobInfo, error)
- func Pull(ctx context.Context, imageInput types.ImageReference, ...) error
- type DiskArtifactOpts
- type Disker
- type OCIArtifactDisk
- type OSVersion
- type PullOptions
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 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 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 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.
Click to show internal directories.
Click to hide internal directories.