openstack

package
v0.0.0-...-aaa1511 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgConnectionFailed = "Failed to connect to openstack."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a gophercloud go-client warper that sends creates/list/delete/update requests for openstack resources to openstack services/components. It lazily initializes new gophercloud ServiceClients at the time they are used.

func New

func New(config *gophercloud.AuthOptions) (*Client, error)

New returns a new Client using the provided openstack authentication config.

func (*Client) GetClient

func (client *Client) GetClient(Type string) (*gophercloud.ServiceClient, error)

client.GetClient() returns valid gophercloud.ServiceClient based on `Type` of service. If ServiceClient does not exists then it lazily initializes it.

Valid values for Type:

  • "compute"
  • "identity"
  • "image"
  • "network"

Jump to

Keyboard shortcuts

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