osv

package
v0.0.0-...-a58d3e8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const OSV_AWS_MEMORY = 1024
View Source
const OSV_DEFAULT_SIZE = "1GB"
View Source
const OSV_QEMU_DEFAULT_MEMORY = 512
View Source
const OSV_VIRTUALBOX_MEMORY = 512
View Source
const OSV_VMWARE_MEMORY = 512

Variables

This section is empty.

Functions

func CreateImageDynamic

func CreateImageDynamic(params types.CompileImageParams, useEc2Bootstrap bool) (string, error)

CreateImageDynamic creates OSv image from project source directory and returns filepath of it.

Types

type AwsImageFinisher

type AwsImageFinisher struct{}

func (*AwsImageFinisher) FinishImage

func (b *AwsImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error)

func (*AwsImageFinisher) UseEc2

func (b *AwsImageFinisher) UseEc2() bool

type FinishParams

type FinishParams struct {
	// CapstanImagePath points to image that was composed by Capstan
	CapstanImagePath string

	// CompileParams stores parameters that were used for composing image
	CompileParams types.CompileImageParams
}

ConvertParams contains all the information needed when bootstrapping.

type ImageFinisher

type ImageFinisher interface {
	// Convert converts Capstan-provided image into appropriate format
	// for the provider
	FinishImage(params FinishParams) (*types.RawImage, error)

	// UseEc2 tells whether or not to prepare image for EC2 (Elastic Compute Cloud)
	UseEc2() bool
}

ImageFinisher implements conversion of Capstan result into provider-specific image. It should be implemented per provider. In this context converting means e.g. converting .qcow2 image (Capstan result) into .wmdk for VirtualBox provider.

type OSvJavaCompiler

type OSvJavaCompiler struct {
	ImageFinisher ImageFinisher
}

func (*OSvJavaCompiler) CompileRawImage

func (r *OSvJavaCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)

func (*OSvJavaCompiler) Usage

type OSvNativeCompiler

type OSvNativeCompiler struct {
	ImageFinisher ImageFinisher
}

func (*OSvNativeCompiler) CompileRawImage

func (r *OSvNativeCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)

func (*OSvNativeCompiler) Usage

type OSvNodeCompiler

type OSvNodeCompiler struct {
	ImageFinisher ImageFinisher
}

func (*OSvNodeCompiler) CompileRawImage

func (r *OSvNodeCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)

func (*OSvNodeCompiler) Usage

type QemuImageFinisher

type QemuImageFinisher struct {
	ImageFinisher
}

func (*QemuImageFinisher) FinishImage

func (b *QemuImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error)

func (*QemuImageFinisher) UseEc2

func (b *QemuImageFinisher) UseEc2() bool

type VirtualboxImageFinisher

type VirtualboxImageFinisher struct{}

func (*VirtualboxImageFinisher) FinishImage

func (b *VirtualboxImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error)

func (*VirtualboxImageFinisher) UseEc2

func (b *VirtualboxImageFinisher) UseEc2() bool

type VmwareImageFinisher

type VmwareImageFinisher struct {
	ImageFinisher
}

func (*VmwareImageFinisher) FinishImage

func (b *VmwareImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error)

Jump to

Keyboard shortcuts

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