compute

package
v0.0.0-...-3e65a16 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVM

func NewVM(e azure.Environment, name string, params ...VMOption) (*remote.Host, error)

NewVM creates an EC2 Instance and returns a Remote component. Without any parameter it creates an Ubuntu VM on AMD64 architecture.

func VMRun

func VMRun(ctx *pulumi.Context) error

Types

type VMOption

type VMOption = func(*vmArgs) error

func WithImageURN

func WithImageURN(imageURN string, osDesc os.Descriptor, arch os.Architecture) VMOption

WithImageURN sets the image URN directly, skipping resolve process.

func WithInstanceType

func WithInstanceType(instanceType string) VMOption

WithInstanceType set the instance type

func WithOS

func WithOS(osDesc os.Descriptor) VMOption

WithOS sets the OS Architecture defaults to os.AMD64Arch 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

func WithUserData

func WithUserData(userData string) VMOption

WithUserData set the userdata for the instance. User data contains commands that are run at the startup of the instance.

Jump to

Keyboard shortcuts

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