upload

package
v0.0.0-...-28d9058 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: UPL-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderTypeOCI = "oci"
View Source
const ProviderTypeOlvm = "olvm"
View Source
const ProviderTypeOstree = "ostree"

Variables

This section is empty.

Functions

func EnsureImageDetails

func EnsureImageDetails(compartmentId string, imageId string, arch string) error

EnsureImageDetails sets important configuration options for the custom image. In particular, it sets the image schema to allow EFI and sets the image shapes to match the architecture.

func Upload

func Upload(options UploadOptions) error

Upload uploads a VM image to OCI Object storage and then imports it into a compute image.

func UploadAsync

func UploadAsync(options UploadOptions) (string, string, error)

UploadAsync uploads a VM image to object storage and then begins the import process. A work request is returned for the import.

func UploadOci

func UploadOci(options UploadOptions) error

UploadOci uploads a boot image to an OCI bucket and imports it as a custom compute image.

func UploadOlvm

func UploadOlvm(o UploadOptions) error

UploadOlvm uploads a boot image to an OLVM disk. see https://ovirt.github.io/ovirt-imageio/images.html

func UploadOstree

func UploadOstree(options UploadOptions) error

Types

type OlvmUploadOptions

type OlvmUploadOptions struct {
	// ProviderConfigPath is the path for the provider config (e.g ~/.oci/config)
	ProviderConfigPath string

	// ProviderType is the provider type (e.g. oci)
	ProviderType string

	// ImagePath is the path of the local boot image
	ImagePath string

	// BucketName is the bucket where the image will get uploaded
	BucketName string

	// CompartmentName is the compartment where the image will get upload
	CompartmentName string

	// ImageName is the name of the custom image to create
	ImageName string

	// KubernetesVersion is the version of Kubernetes embedded
	// in the image to upload
	KubernetesVersion string

	// ImageArchitecture is the architecture of the image to upload
	ImageArchitecture string

	// Destination is the place to upload the image
	Destination string
	// contains filtered or unexported fields
}

OlvmUploadOptions are the options for the upload image command

type UploadOptions

type UploadOptions struct {
	// KubeConfigPath is the optional path to the kubeconfig file
	KubeConfigPath string

	// ClusterConfig is the cluster config.
	// This is optional and only needed by OLVM for now
	ClusterConfig *types.ClusterConfig

	// ProviderConfigPath is the path for the provider config (e.g ~/.oci/config)
	ProviderConfigPath string

	// ProviderType is the provider type (e.g. oci)
	ProviderType string

	// ImagePath is the path of the local boot image
	ImagePath string

	// BucketName is the bucket where the image will get uploaded
	BucketName string

	// CompartmentName is the compartment where the image will get upload
	CompartmentName string

	// ImageName is the name of the custom image to create
	ImageName string

	// KubernetesVersion is the version of Kubernetes embedded
	// in the image to upload
	KubernetesVersion string

	// ImageArchitecture is the architecture of the image to upload
	ImageArchitecture string

	// Destination is the place to upload the image
	Destination string
	// contains filtered or unexported fields
}

UploadOptions are the options for the upload image command

Jump to

Keyboard shortcuts

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