Documentation ¶
Index ¶
Constants ¶
View Source
const OSV_AWS_MEMORY = 1024
View Source
const OSV_VIRTUALBOX_MEMORY = 512
View Source
const OSV_VMWARE_MEMORY = 512
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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)
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)
Click to show internal directories.
Click to hide internal directories.