openstackSdk

package
v0.0.0-...-10d6984 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 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 Sdk

type Sdk struct {
	Compute       *gophercloud.ServiceClient
	Network       *gophercloud.ServiceClient
	ObjectStorage *gophercloud.ServiceClient
}

Sdk represents an Openstack SDK.

func NewSdk

func NewSdk(region string) (*Sdk, error)

NewSdk constructs a new Openstack SDK for the specified region.

The following environment variable list is looked up in the user environment in order to authenticate to the cloud operator: OS_AUTH_URL, OS_USERNAME, OS_USERID, OS_PASSWORD, OS_TENANT_ID, OS_TENANT_NAME, OS_DOMAIN_ID, OS_DOMAIN_NAME.

Note that only a susbset of these has to be set since most variables derive from one another to allow using either names or ids.

Jump to

Keyboard shortcuts

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