Documentation ¶
Index ¶
- Constants
- func EnsureImageDetails(compartmentId string, imageId string, arch string) error
- func Upload(options UploadOptions) error
- func UploadAsync(options UploadOptions) (string, string, error)
- func UploadOci(options UploadOptions) error
- func UploadOlvm(o UploadOptions) error
- func UploadOstree(options UploadOptions) error
- type OlvmUploadOptions
- type UploadOptions
Constants ¶
const ProviderTypeOCI = "oci"
const ProviderTypeOlvm = "olvm"
const ProviderTypeOstree = "ostree"
Variables ¶
This section is empty.
Functions ¶
func EnsureImageDetails ¶
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