Documentation ¶
Index ¶
- func NewVM(e azure.Environment, name string, params ...VMOption) (*remote.Host, error)
- type VMOption
- func WithImageURN(imageURN string, osDesc os.Descriptor, arch os.Architecture) VMOption
- func WithInstanceType(instanceType string) VMOption
- func WithOS(osDesc os.Descriptor) VMOption
- func WithOSArch(osDesc os.Descriptor, arch os.Architecture) VMOption
- func WithPulumiResourceOptions(opts ...pulumi.ResourceOption) VMOption
- func WithUserData(userData string) VMOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
WithInstanceType set the instance type
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
func WithPulumiResourceOptions ¶
func WithPulumiResourceOptions(opts ...pulumi.ResourceOption) VMOption
WithPulumiResourceOptions sets the pulumi.ResourceOptions for the VM
func WithUserData ¶
WithUserData set the userdata for the instance. User data contains commands that are run at the startup of the instance.
Click to show internal directories.
Click to hide internal directories.