client

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: GPL-3.0 Imports: 14 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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