package autostart

import "github.com/vmware/govmomi/cli/host/autostart"

Index

Types

type AutostartFlag

type AutostartFlag struct {
	*flags.ClientFlag
	*flags.DatacenterFlag
	*flags.HostSystemFlag
}

func (*AutostartFlag) HostAutoStartManager

func (f *AutostartFlag) HostAutoStartManager() (*mo.HostAutoStartManager, error)

func (*AutostartFlag) Process

func (f *AutostartFlag) Process(ctx context.Context) error

func (*AutostartFlag) ReconfigureDefaults

func (f *AutostartFlag) ReconfigureDefaults(template types.AutoStartDefaults) error

func (*AutostartFlag) ReconfigureVMs

func (f *AutostartFlag) ReconfigureVMs(args []string, template types.AutoStartPowerInfo) error

func (*AutostartFlag) Register

func (f *AutostartFlag) Register(ctx context.Context, fs *flag.FlagSet)

func (*AutostartFlag) VirtualMachines

func (f *AutostartFlag) VirtualMachines(args []string) ([]*object.VirtualMachine, error)

VirtualMachines returns list of virtual machine objects based on the arguments specified on the command line. This helper is defined in flags.SearchFlag as well, but that pulls in other virtual machine flags that are not relevant here.

Source Files

add.go autostart.go configure.go info.go remove.go

Version
v0.48.1 (latest)
Published
Feb 11, 2025
Platform
linux/amd64
Imports
16 packages
Last checked
2 months ago

Tools for package owners.