Documentation ¶
Index ¶
- Constants
- func CreateImageDynamic(params types.CompileImageParams, useEc2Bootstrap bool) (string, error)
- type AwsImageFinisher
- type FinishParams
- type ImageFinisher
- type OSvJavaCompiler
- type OSvNativeCompiler
- type OSvNodeCompiler
- type QemuImageFinisher
- type VirtualboxImageFinisher
- type VmwareImageFinisher
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 ¶
func (r *OSvJavaCompiler) Usage() *compilers.CompilerUsage
type OSvNativeCompiler ¶
type OSvNativeCompiler struct {
ImageFinisher ImageFinisher
}
func (*OSvNativeCompiler) CompileRawImage ¶
func (r *OSvNativeCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)
func (*OSvNativeCompiler) Usage ¶
func (r *OSvNativeCompiler) Usage() *compilers.CompilerUsage
type OSvNodeCompiler ¶
type OSvNodeCompiler struct {
ImageFinisher ImageFinisher
}
func (*OSvNodeCompiler) CompileRawImage ¶
func (r *OSvNodeCompiler) CompileRawImage(params types.CompileImageParams) (*types.RawImage, error)
func (*OSvNodeCompiler) Usage ¶
func (r *OSvNodeCompiler) Usage() *compilers.CompilerUsage
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)
Click to show internal directories.
Click to hide internal directories.