vsphereutil

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientProvider

type ClientProvider interface {
	// Get returns a valid vSphere client, creating or reauthenticating it if
	// necessary. An error is returned if the client can't be created or if
	// logging in fails.
	Get(context.Context) (*govmomi.Client, error)
}

ClientProvider will give you a vSphere client that is reauthenticated as needed.

func NewClientProvider

func NewClientProvider(url *url.URL, insecure bool) ClientProvider

NewClientProvider creates a new client provider that will connect to the given URL.

Jump to

Keyboard shortcuts

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