compute

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVM

func NewVM(e gcp.Environment, name string, option ...VMOption) (*remote.Host, error)

Types

type VMOption

type VMOption = func(*vmArgs) error

func WithInstancetype added in v0.0.6

func WithInstancetype(instanceType string) VMOption

WithInstanceType sets the VM instance type instanceType must be a valid gcp instance type, see: https://cloud.google.com/compute/docs/general-purpose-machines

func WithNestedVirt added in v0.0.6

func WithNestedVirt(enabled bool) VMOption

WithNestedVirt sets if the VM allows nested virtualization This is useful in case of openshift as it only runs on a VM.

func WithOS added in v0.0.4

func WithOS(osDesc os.Descriptor) VMOption

WithOS sets the OS Version defaults to latest

func WithOSArch added in v0.0.4

func WithOSArch(osDesc os.Descriptor, arch os.Architecture) VMOption

WithArch set the architecture and the operating system. Version defaults to latest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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