Documentation ¶
Index ¶
- Constants
- func NewArtifact(dir string) (packer.Artifact, error)
- type Driver
- type HypervPS4Driver
- type OutputConfig
- type StepAcceptEula
- type StepCheckRemoting
- type StepConfigureIp
- type StepConfigureVlan
- type StepCreateExternalSwitch
- type StepCreateSwitch
- type StepCreateTempDir
- type StepDisableVlan
- type StepEnableIntegrationService
- type StepExecuteOnlineActivation
- type StepExecuteOnlineActivationFull
- type StepOutputDir
- type StepPollingInstalation
- type StepRebootVm
- type StepSetRemoting
- type StepSleep
- type StepStartVm
- type StepStopVm
Constants ¶
View Source
const BuilderId = "MSOpenTech.hyperv"
This is the common builder ID to all of these artifacts.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface { // HypervManage executes the given HypervManage command HypervManage(string) error // Verify checks to make sure that this driver should function // properly. If there is any indication the driver can't function, // this will return an error. Verify() error }
A driver is able to talk to HyperV and perform certain operations with it. Some of the operations on here may seem overly specific, but they were built specifically in mind to handle features of the HyperV builder for Packer, and to abstract differences in versions out of the builder steps, so sometimes the methods are extremely specific.
func NewHypervPS4Driver ¶
type HypervPS4Driver ¶
type HypervPS4Driver struct {
HypervManagePath string
}
func (*HypervPS4Driver) HypervManage ¶
func (d *HypervPS4Driver) HypervManage(block string) error
func (*HypervPS4Driver) Verify ¶
func (d *HypervPS4Driver) Verify() error
func (*HypervPS4Driver) VerifyPSAzureModule ¶
func (d *HypervPS4Driver) VerifyPSAzureModule() error
type OutputConfig ¶
type OutputConfig struct {
OutputDir string `mapstructure:"output_directory"`
}
func (*OutputConfig) Prepare ¶
func (c *OutputConfig) Prepare(t *packer.ConfigTemplate, pc *common.PackerConfig) []error
type StepAcceptEula ¶
type StepAcceptEula struct { }
func (*StepAcceptEula) Cleanup ¶
func (s *StepAcceptEula) Cleanup(state multistep.StateBag)
func (*StepAcceptEula) Run ¶
func (s *StepAcceptEula) Run(state multistep.StateBag) multistep.StepAction
type StepCheckRemoting ¶
type StepCheckRemoting struct { }
func (*StepCheckRemoting) Cleanup ¶
func (s *StepCheckRemoting) Cleanup(state multistep.StateBag)
func (*StepCheckRemoting) Run ¶
func (s *StepCheckRemoting) Run(state multistep.StateBag) multistep.StepAction
type StepConfigureIp ¶
type StepConfigureIp struct {
// contains filtered or unexported fields
}
func (*StepConfigureIp) Cleanup ¶
func (s *StepConfigureIp) Cleanup(state multistep.StateBag)
func (*StepConfigureIp) Run ¶
func (s *StepConfigureIp) Run(state multistep.StateBag) multistep.StepAction
type StepConfigureVlan ¶
type StepConfigureVlan struct { }
func (*StepConfigureVlan) Cleanup ¶
func (s *StepConfigureVlan) Cleanup(state multistep.StateBag)
func (*StepConfigureVlan) Run ¶
func (s *StepConfigureVlan) Run(state multistep.StateBag) multistep.StepAction
type StepCreateExternalSwitch ¶
type StepCreateExternalSwitch struct { SwitchName string // contains filtered or unexported fields }
This step creates switch for VM.
Produces:
SwitchName string - The name of the Switch
func (*StepCreateExternalSwitch) Cleanup ¶
func (s *StepCreateExternalSwitch) Cleanup(state multistep.StateBag)
func (*StepCreateExternalSwitch) Run ¶
func (s *StepCreateExternalSwitch) Run(state multistep.StateBag) multistep.StepAction
type StepCreateSwitch ¶
type StepCreateSwitch struct {
SwitchName string
}
This step creates switch for VM.
Produces:
SwitchName string - The name of the Switch
func (*StepCreateSwitch) Cleanup ¶
func (s *StepCreateSwitch) Cleanup(state multistep.StateBag)
func (*StepCreateSwitch) Run ¶
func (s *StepCreateSwitch) Run(state multistep.StateBag) multistep.StepAction
type StepCreateTempDir ¶
type StepCreateTempDir struct {
// contains filtered or unexported fields
}
func (*StepCreateTempDir) Cleanup ¶
func (s *StepCreateTempDir) Cleanup(state multistep.StateBag)
func (*StepCreateTempDir) Run ¶
func (s *StepCreateTempDir) Run(state multistep.StateBag) multistep.StepAction
type StepDisableVlan ¶
type StepDisableVlan struct { }
func (*StepDisableVlan) Cleanup ¶
func (s *StepDisableVlan) Cleanup(state multistep.StateBag)
func (*StepDisableVlan) Run ¶
func (s *StepDisableVlan) Run(state multistep.StateBag) multistep.StepAction
type StepEnableIntegrationService ¶
type StepEnableIntegrationService struct {
// contains filtered or unexported fields
}
func (*StepEnableIntegrationService) Cleanup ¶
func (s *StepEnableIntegrationService) Cleanup(state multistep.StateBag)
func (*StepEnableIntegrationService) Run ¶
func (s *StepEnableIntegrationService) Run(state multistep.StateBag) multistep.StepAction
type StepExecuteOnlineActivation ¶
type StepExecuteOnlineActivation struct { }
func (*StepExecuteOnlineActivation) Cleanup ¶
func (s *StepExecuteOnlineActivation) Cleanup(state multistep.StateBag)
func (*StepExecuteOnlineActivation) Run ¶
func (s *StepExecuteOnlineActivation) Run(state multistep.StateBag) multistep.StepAction
type StepExecuteOnlineActivationFull ¶
type StepExecuteOnlineActivationFull struct {
Pk string
}
func (*StepExecuteOnlineActivationFull) Cleanup ¶
func (s *StepExecuteOnlineActivationFull) Cleanup(state multistep.StateBag)
func (*StepExecuteOnlineActivationFull) Run ¶
func (s *StepExecuteOnlineActivationFull) Run(state multistep.StateBag) multistep.StepAction
type StepOutputDir ¶
StepOutputDir sets up the output directory by creating it if it does not exist, deleting it if it does exist and we're forcing, and cleaning it up when we're done with it.
func (*StepOutputDir) Cleanup ¶
func (s *StepOutputDir) Cleanup(state multistep.StateBag)
func (*StepOutputDir) Run ¶
func (s *StepOutputDir) Run(state multistep.StateBag) multistep.StepAction
type StepPollingInstalation ¶
type StepPollingInstalation struct {
// contains filtered or unexported fields
}
func (*StepPollingInstalation) Cleanup ¶
func (s *StepPollingInstalation) Cleanup(state multistep.StateBag)
func (*StepPollingInstalation) Run ¶
func (s *StepPollingInstalation) Run(state multistep.StateBag) multistep.StepAction
type StepRebootVm ¶
type StepRebootVm struct { }
func (*StepRebootVm) Cleanup ¶
func (s *StepRebootVm) Cleanup(state multistep.StateBag)
func (*StepRebootVm) Run ¶
func (s *StepRebootVm) Run(state multistep.StateBag) multistep.StepAction
type StepSetRemoting ¶
type StepSetRemoting struct {
// contains filtered or unexported fields
}
func (*StepSetRemoting) Cleanup ¶
func (s *StepSetRemoting) Cleanup(state multistep.StateBag)
func (*StepSetRemoting) Run ¶
func (s *StepSetRemoting) Run(state multistep.StateBag) multistep.StepAction
type StepStartVm ¶
type StepStartVm struct { }
func (*StepStartVm) Cleanup ¶
func (s *StepStartVm) Cleanup(state multistep.StateBag)
func (*StepStartVm) Run ¶
func (s *StepStartVm) Run(state multistep.StateBag) multistep.StepAction
type StepStopVm ¶
type StepStopVm struct { }
func (*StepStopVm) Cleanup ¶
func (s *StepStopVm) Cleanup(state multistep.StateBag)
func (*StepStopVm) Run ¶
func (s *StepStopVm) Run(state multistep.StateBag) multistep.StepAction
Source Files ¶
- artifact.go
- driver.go
- driver_ps_4.go
- output_config.go
- step_accept_eula.go
- step_check_remoting.go
- step_configure_ip.go
- step_configure_vlan.go
- step_create_external_switch.go
- step_create_switch.go
- step_create_tempdir.go
- step_disable_vlan.go
- step_enable_integration_service.go
- step_execute_online_activation.go
- step_execute_online_activation_full.go
- step_output_dir.go
- step_polling_installation.go
- step_reboot_vm.go
- step_set_remoting.go
- step_sleep.go
- step_start_vm.go
- step_stop_vm.go
Click to show internal directories.
Click to hide internal directories.