common

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MPL-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BuilderId = "jetbrains.vsphere"

Variables

This section is empty.

Functions

func CommHost

func CommHost(state multistep.StateBag) (string, error)

func SshConfig

func SshConfig(state multistep.StateBag) (*ssh.ClientConfig, error)

Types

type Artifact

type Artifact struct {
	Name string
	VM   *driver.VirtualMachine
}

func (*Artifact) BuilderId

func (a *Artifact) BuilderId() string

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

func (*Artifact) Files

func (a *Artifact) Files() []string

func (*Artifact) Id

func (a *Artifact) Id() string

func (*Artifact) State

func (a *Artifact) State(name string) interface{}

func (*Artifact) String

func (a *Artifact) String() string

type ConfigParamsConfig

type ConfigParamsConfig struct {
	ConfigParams map[string]string `mapstructure:"configuration_parameters"`
}

type ConnectConfig

type ConnectConfig struct {
	VCenterServer      string `mapstructure:"vcenter_server"`
	Username           string `mapstructure:"username"`
	Password           string `mapstructure:"password"`
	InsecureConnection bool   `mapstructure:"insecure_connection"`
	Datacenter         string `mapstructure:"datacenter"`
}

func (*ConnectConfig) Prepare

func (c *ConnectConfig) Prepare() []error

type HardwareConfig

type HardwareConfig struct {
	CPUs             int32 `mapstructure:"CPUs"`
	CPUReservation   int64 `mapstructure:"CPU_reservation"`
	CPULimit         int64 `mapstructure:"CPU_limit"`
	CpuHotAddEnabled bool  `mapstructure:"CPU_hot_plug"`

	RAM                 int64 `mapstructure:"RAM"`
	RAMReservation      int64 `mapstructure:"RAM_reservation"`
	RAMReserveAll       bool  `mapstructure:"RAM_reserve_all"`
	MemoryHotAddEnabled bool  `mapstructure:"RAM_hot_plug"`

	NestedHV bool `mapstructure:"NestedHV"`
}

func (*HardwareConfig) Prepare

func (c *HardwareConfig) Prepare() []error

type LocationConfig

type LocationConfig struct {
	VMName       string `mapstructure:"vm_name"`
	Folder       string `mapstructure:"folder"`
	Cluster      string `mapstructure:"cluster"`
	Host         string `mapstructure:"host"`
	ResourcePool string `mapstructure:"resource_pool"`
	Datastore    string `mapstructure:"datastore"`
}

func (*LocationConfig) Prepare

func (c *LocationConfig) Prepare() []error

type RunConfig

type RunConfig struct {
	BootOrder string `mapstructure:"boot_order"` // example: "floppy,cdrom,ethernet,disk"
}

func (*RunConfig) Prepare

func (c *RunConfig) Prepare() []error

type ShutdownConfig

type ShutdownConfig struct {
	Command    string `mapstructure:"shutdown_command"`
	RawTimeout string `mapstructure:"shutdown_timeout"`

	Timeout time.Duration
}

func (*ShutdownConfig) Prepare

func (c *ShutdownConfig) Prepare() []error

type StepConfigParams

type StepConfigParams struct {
	Config *ConfigParamsConfig
}

func (*StepConfigParams) Cleanup

func (s *StepConfigParams) Cleanup(state multistep.StateBag)

func (*StepConfigParams) Run

type StepConfigureHardware

type StepConfigureHardware struct {
	Config *HardwareConfig
}

func (*StepConfigureHardware) Cleanup

func (*StepConfigureHardware) Run

type StepConnect

type StepConnect struct {
	Config *ConnectConfig
}

func (*StepConnect) Cleanup

func (s *StepConnect) Cleanup(multistep.StateBag)

func (*StepConnect) Run

type StepConvertToTemplate

type StepConvertToTemplate struct {
	ConvertToTemplate bool
}

func (*StepConvertToTemplate) Cleanup

func (s *StepConvertToTemplate) Cleanup(state multistep.StateBag)

func (*StepConvertToTemplate) Run

type StepCreateSnapshot

type StepCreateSnapshot struct {
	CreateSnapshot bool
}

func (*StepCreateSnapshot) Cleanup

func (s *StepCreateSnapshot) Cleanup(state multistep.StateBag)

func (*StepCreateSnapshot) Run

type StepRun

type StepRun struct {
	Config *RunConfig
}

func (*StepRun) Cleanup

func (s *StepRun) Cleanup(state multistep.StateBag)

func (*StepRun) Run

type StepShutdown

type StepShutdown struct {
	Config *ShutdownConfig
}

func (*StepShutdown) Cleanup

func (s *StepShutdown) Cleanup(state multistep.StateBag)

func (*StepShutdown) Run

type StepWaitForIp

type StepWaitForIp struct{}

func (*StepWaitForIp) Cleanup

func (s *StepWaitForIp) Cleanup(state multistep.StateBag)

func (*StepWaitForIp) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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