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
- func StripOCIReference(input string) string
- type DiskArtifactOpts
- type Disker
- type LocalBlobDir
- type OCIArtifactDisk
- type OCIKind
- type OCIOpts
- 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`.
func StripOCIReference ¶
Types ¶
type DiskArtifactOpts ¶
type DiskArtifactOpts struct {
// contains filtered or unexported fields
}
type LocalBlobDir ¶
type LocalBlobDir struct {
// contains filtered or unexported fields
}
func NewOCIDir ¶
func NewOCIDir(ctx context.Context, inputDir, machineImageDir, vmName string) *LocalBlobDir
func (*LocalBlobDir) Decompress ¶
func (*LocalBlobDir) DiskEndpoint ¶
func (l *LocalBlobDir) DiskEndpoint() string
func (*LocalBlobDir) LocalBlob ¶
func (l *LocalBlobDir) LocalBlob() *types.BlobInfo
func (*LocalBlobDir) Pull ¶
func (l *LocalBlobDir) Pull() error
type OCIArtifactDisk ¶
type OCIArtifactDisk struct {
// contains filtered or unexported fields
}
func NewOCIArtifactPull ¶
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 { // Require HTTPS and verify certificates when accessing the registry. TLSVerify bool // [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.