client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 2 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 {
	Upstream *govcd.VCDClient

	Endpoint     *url.URL
	Insecure     bool
	Username     string
	Password     string
	Organization string
	Datacenter   string
}

Client abstracts some cloud provider client handling.

func New

func New(endpoint *url.URL, insecure bool, username, password, org, vdc string) *Client

New initializes a new client.

func (*Client) Authenticate

func (c *Client) Authenticate() error

Authenticate wraps the auth for the cloud provider.

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect wraps the logout for the cloud provider.

Jump to

Keyboard shortcuts

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