compute

package
v0.75.0-devel Latest Latest
Warning

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

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

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

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

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

func WithOS(osDesc os.Descriptor) VMOption

WithOS sets the OS Version defaults to latest

func WithOSArch

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