common

package
v0.0.0-...-7323e30 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0, MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderId = "MSOpenTech.hyperv"

This is the common builder ID to all of these artifacts.

Variables

This section is empty.

Functions

func NewArtifact

func NewArtifact(dir string) (packer.Artifact, error)

NewArtifact returns a VirtualBox artifact containing the files in the given directory.

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

func NewHypervPS4Driver() (Driver, error)

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

type StepAcceptEula

type StepAcceptEula struct {
}

func (*StepAcceptEula) Cleanup

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

func (*StepAcceptEula) Run

type StepCheckRemoting

type StepCheckRemoting struct {
}

func (*StepCheckRemoting) Cleanup

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

func (*StepCheckRemoting) Run

type StepConfigureIp

type StepConfigureIp struct {
	// contains filtered or unexported fields
}

func (*StepConfigureIp) Cleanup

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

func (*StepConfigureIp) Run

type StepConfigureVlan

type StepConfigureVlan struct {
}

func (*StepConfigureVlan) Cleanup

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

func (*StepConfigureVlan) Run

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

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

type StepCreateTempDir

type StepCreateTempDir struct {
	// contains filtered or unexported fields
}

func (*StepCreateTempDir) Cleanup

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

func (*StepCreateTempDir) Run

type StepDisableVlan

type StepDisableVlan struct {
}

func (*StepDisableVlan) Cleanup

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

func (*StepDisableVlan) Run

type StepEnableIntegrationService

type StepEnableIntegrationService struct {
	// contains filtered or unexported fields
}

func (*StepEnableIntegrationService) Cleanup

func (*StepEnableIntegrationService) Run

type StepExecuteOnlineActivation

type StepExecuteOnlineActivation struct {
}

func (*StepExecuteOnlineActivation) Cleanup

func (*StepExecuteOnlineActivation) Run

type StepExecuteOnlineActivationFull

type StepExecuteOnlineActivationFull struct {
	Pk string
}

func (*StepExecuteOnlineActivationFull) Cleanup

func (*StepExecuteOnlineActivationFull) Run

type StepOutputDir

type StepOutputDir struct {
	Force bool
	Path  string
}

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

type StepPollingInstalation

type StepPollingInstalation struct {
	// contains filtered or unexported fields
}

func (*StepPollingInstalation) Cleanup

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

func (*StepPollingInstalation) Run

type StepRebootVm

type StepRebootVm struct {
}

func (*StepRebootVm) Cleanup

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

func (*StepRebootVm) Run

type StepSetRemoting

type StepSetRemoting struct {
	// contains filtered or unexported fields
}

func (*StepSetRemoting) Cleanup

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

func (*StepSetRemoting) Run

type StepSleep

type StepSleep struct {
	Minutes    time.Duration
	ActionName string
}

func (*StepSleep) Cleanup

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

func (*StepSleep) Run

type StepStartVm

type StepStartVm struct {
}

func (*StepStartVm) Cleanup

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

func (*StepStartVm) Run

type StepStopVm

type StepStopVm struct {
}

func (*StepStopVm) Cleanup

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

func (*StepStopVm) Run

Jump to

Keyboard shortcuts

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