vm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheHostList added in v0.2.6

func GetCacheHostList() []schema.Host

GetCacheHostList returns a snapshot of the last enumerated host list.

func SetCacheHostList added in v0.2.6

func SetCacheHostList(hosts []schema.Host)

SetCacheHostList stores the hosts enumerated by GetResource so the console shell layer can later resolve a host's region + osType without re-listing.

Types

type Driver

type Driver struct {
	Client *api.Client
	Region string
}

func (*Driver) GetResource

func (d *Driver) GetResource(ctx context.Context) ([]schema.Host, error)

Jump to

Keyboard shortcuts

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