client

package
v0.0.0-...-6ade924 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Client, error)

func (*Client) ComputeResources

func (c *Client) ComputeResources(pathSet ...string) (computes []mo.ComputeResource, err error)

func (*Client) CounterInfoByName

func (c *Client) CounterInfoByName() (map[string]*types.PerfCounterInfo, error)

func (*Client) Datacenters

func (c *Client) Datacenters(pathSet ...string) (dcs []mo.Datacenter, err error)

func (*Client) Folders

func (c *Client) Folders(pathSet ...string) (folders []mo.Folder, err error)

func (*Client) Hosts

func (c *Client) Hosts(pathSet ...string) (hosts []mo.HostSystem, err error)

func (*Client) IsSessionActive

func (c *Client) IsSessionActive() (bool, error)

func (*Client) Login

func (c *Client) Login(userinfo *url.Userinfo) error

func (*Client) Logout

func (c *Client) Logout() error

func (*Client) PerformanceMetrics

func (c *Client) PerformanceMetrics(pqs []types.PerfQuerySpec) ([]performance.EntityMetric, error)

func (*Client) Version

func (c *Client) Version() string

func (*Client) VirtualMachines

func (c *Client) VirtualMachines(pathSet ...string) (vms []mo.VirtualMachine, err error)

type Config

type Config struct {
	URL      string
	User     string
	Password string
	tlscfg.TLSConfig
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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