steps

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToIPv6

func ConvertToIPv6(address *ipaddress.IPAddress, prefixStr string) (*ipaddress.IPAddress, error)

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 FileWriter interface {
	WriteFile(name string, data []byte, perm fs.FileMode) error
}

type RealFileWriter added in v0.7.0

type RealFileWriter struct{}

func (RealFileWriter) WriteFile added in v0.7.0

func (fw RealFileWriter) WriteFile(name string, data []byte, perm fs.FileMode) error

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

type StepCreateHMACKeyDriver

type StepCreateHMACKeyDriver interface {
	CreateHMACKey(ctx context.Context, serviceAccount, name string) (accessKey string, secretKey string, err error)
	DeleteHMACKey(ctx context.Context, serviceAccount, name string) error
}

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

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
}

Directories

Path Synopsis
Package mock_steps is a generated GoMock package.
Package mock_steps is a generated GoMock package.

Jump to

Keyboard shortcuts

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