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