Documentation ¶
Index ¶
- Constants
- func CommHost(state multistep.StateBag) (string, error)
- func SshConfig(state multistep.StateBag) (*ssh.ClientConfig, error)
- type Artifact
- type ConfigParamsConfig
- type ConnectConfig
- type HardwareConfig
- type LocationConfig
- type RunConfig
- type ShutdownConfig
- type StepConfigParams
- type StepConfigureHardware
- type StepConnect
- type StepConvertToTemplate
- type StepCreateSnapshot
- type StepRun
- type StepShutdown
- type StepWaitForIp
Constants ¶
View Source
const BuilderId = "jetbrains.vsphere"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
type Artifact struct { Name string VM *driver.VirtualMachine }
type ConfigParamsConfig ¶
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"
}
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 ¶
func (s *StepConfigParams) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepConfigureHardware ¶
type StepConfigureHardware struct {
Config *HardwareConfig
}
func (*StepConfigureHardware) Cleanup ¶
func (s *StepConfigureHardware) Cleanup(multistep.StateBag)
func (*StepConfigureHardware) Run ¶
func (s *StepConfigureHardware) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepConnect ¶
type StepConnect struct {
Config *ConnectConfig
}
func (*StepConnect) Cleanup ¶
func (s *StepConnect) Cleanup(multistep.StateBag)
func (*StepConnect) Run ¶
func (s *StepConnect) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepConvertToTemplate ¶
type StepConvertToTemplate struct {
ConvertToTemplate bool
}
func (*StepConvertToTemplate) Cleanup ¶
func (s *StepConvertToTemplate) Cleanup(state multistep.StateBag)
func (*StepConvertToTemplate) Run ¶
func (s *StepConvertToTemplate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepCreateSnapshot ¶
type StepCreateSnapshot struct {
CreateSnapshot bool
}
func (*StepCreateSnapshot) Cleanup ¶
func (s *StepCreateSnapshot) Cleanup(state multistep.StateBag)
func (*StepCreateSnapshot) Run ¶
func (s *StepCreateSnapshot) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
type StepShutdown ¶
type StepShutdown struct {
Config *ShutdownConfig
}
func (*StepShutdown) Cleanup ¶
func (s *StepShutdown) Cleanup(state multistep.StateBag)
func (*StepShutdown) Run ¶
func (s *StepShutdown) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepWaitForIp ¶
type StepWaitForIp struct{}
func (*StepWaitForIp) Cleanup ¶
func (s *StepWaitForIp) Cleanup(state multistep.StateBag)
func (*StepWaitForIp) Run ¶
func (s *StepWaitForIp) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
Source Files ¶
Click to show internal directories.
Click to hide internal directories.