ova

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VolName    = "disk"
	VolNameRaw = VolName + ".raw"
)

Variables

This section is empty.

Functions

func CreateTarArchive

func CreateTarArchive(dir string, target string, targetDiskSize int64, imageDist string, volumeDiskName string) error

bundles the dir into a OVA image

func Render

func Render(imageName, volumeName string, srcVolumeSize int64, targetDiskSize int64, ImageDist string) (string, error)

Render will generate the OVA spec from the template with all the required information like image name, volume name and size

func RenderMeta

func RenderMeta(imageName string) (string, error)

RenderMeta will generate the OVA meta spec from the template with the image name

Types

type OVA

type OVA struct {
	ImageName, VolumeName string
	SrcVolumeSize         int64
	TargetDiskSize        int64
	PvsadmVersion         string
	OsId                  string
}

Jump to

Keyboard shortcuts

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