Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToIPv6 ¶
ConvertToIPv6 converts an ipaddress.IPAddress containing an IPv4 address to an IPv6 address according to RFC 6052. https://www.rfc-editor.org/info/rfc6052/
Types ¶
type FileWriter ¶ added in v0.7.0
type RealFileWriter ¶ added in v0.7.0
type RealFileWriter struct{}
type StepCreateHMACKey ¶
type StepCreateHMACKey struct {
ServiceAccount string
AccessKey string
SecretKey string
CleanupTimeout time.Duration
}
func (*StepCreateHMACKey) Cleanup ¶
func (s *StepCreateHMACKey) Cleanup(state multistep.StateBag)
func (*StepCreateHMACKey) Run ¶
func (s *StepCreateHMACKey) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepCreateHMACKeyDriver ¶
type StepCreateVirtualMachine ¶
type StepCreateVirtualMachine struct {
Project string
Zone string
Communicator *communicator.Config
commonconfig.VirtualMachineConfig
*commonconfig.DiskForExportConfig
GeneratedData *packerbuilderdata.GeneratedData
FileWriter FileWriter
}
func (*StepCreateVirtualMachine) Cleanup ¶
func (s *StepCreateVirtualMachine) Cleanup(state multistep.StateBag)
func (*StepCreateVirtualMachine) Run ¶
func (s *StepCreateVirtualMachine) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepCreateVirtualMachineDriver ¶
type StepCreateVirtualMachineDriver interface {
CreateDisk(context.Context, drivermws.CreateDiskParams) error
CreateExternalAddress(context.Context, drivermws.CreateExternalAddressParams) (*ipaddress.IPAddress, error)
CreateNetwork(context.Context, drivermws.CreateNetworkParams) error
CreateSubnet(context.Context, drivermws.CreateSubnetParams) error
CreateVirtualMachine(context.Context, drivermws.CreateVirtualMachineParams) (*ipaddress.IPAddress, error)
CreateFirewallRule(context.Context, drivermws.CreateFirewallRuleParams) error
GetImageMinDiskSize(context.Context, *computeref.ImageRef) (*bytesize.ByteSize, error)
GetDiskBackupMinDiskSize(context.Context, *computeref.DiskBackupRef) (*bytesize.ByteSize, error)
GetSerialPortOutput(context.Context, string, int) ([]byte, error)
DeleteDisk(context.Context, string) error
DeleteExternalAddress(context.Context, string) error
DeleteNetwork(context.Context, string) error
DeleteSubnet(context.Context, string, string) error
DeleteVirtualMachine(context.Context, string) error
DeleteFirewallRule(context.Context, string, string) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.