cloudwatt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderNetwork string = "Ext-Net"

ProviderNetwork name of CloudWatt external network

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

type AuthOptions struct {
	Username   string
	Password   string
	TenantName string
	Region     string
}

AuthOptions fields are the union of those recognized by each identity implementation and provider.

type Client

type Client struct {
	*openstack.Client
	// contains filtered or unexported fields
}

Client is the implementation of the ovh driver regarding to the api.ClientAPI This client used ovh api and opensatck ovh api to maximize code reuse

func AuthenticatedClient

func AuthenticatedClient(opts AuthOptions, cfg openstack.CfgOptions) (*Client, error)

AuthenticatedClient returns an authenticated client

func (*Client) Build

func (c *Client) Build(params map[string]interface{}) (api.ClientAPI, error)

Build build a new Client from configuration parameter

func (*Client) GetCfgOpts

func (c *Client) GetCfgOpts() (model.Config, error)

GetCfgOpts return configuration parameters

Jump to

Keyboard shortcuts

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