ovaconverter

package
v0.0.0-...-2bd88fd Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	GCSClient      *storage.Client
	ComputeService *compute.Service
}

func NewConverter

func NewConverter(ctx context.Context) *Converter

func (*Converter) ConvertOVAFromGCE

func (converter *Converter) ConvertOVAFromGCE(ctx context.Context, sourceImage, destinationPath, gcsBucket, imageProject, zone string,
	gceToOVAConverterConfig *GCEToOVAConverterConfig) error

ConvertOVAFromGCE converts GCE Image to OVA Format.

func (*Converter) ConvertOVAToGCE

func (converter *Converter) ConvertOVAToGCE(ctx context.Context, inputURL, imageName, gcsBucket, imageProject string) error

ConvertOVAToGCE converts the OVA file at GCS Location to a GCE image.

type GCEToOVAConverterConfig

type GCEToOVAConverterConfig struct {
	DaisyBin          string
	MakeOVAScript     string
	OVATemplate       string
	DaisyWorkflowPath string
}

GCEToOVAConverterConfig holds the required configuration about the daisy bin path, make OVA script path and template path

func GetDefaultOVAConverterConfig

func GetDefaultOVAConverterConfig() *GCEToOVAConverterConfig

Jump to

Keyboard shortcuts

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