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.
Click to show internal directories.
Click to hide internal directories.