Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2018 Changes in this version + func FromIntIPversion(v int) IPVersion.Enum + func ParseBadRequest(badRequestError string) map[string]string + func ParseNeutronError(neutronError string) map[string]string + func ProviderErrorToString(err error) string + func ToGopherIPversion(v IPVersion.Enum) gc.IPVersion + func VerifyEndpoints(service *Client) (bool, error) + type AuthOptions struct + APIKey string + AllowReauth bool + DomainID string + DomainName string + FloatingIPPool string + IdentityEndpoint string + Password string + Region string + TenantID string + TenantName string + TokenID string + UserID string + Username string + type CfgOptions struct + AutoHostNetworkInterfaces bool + DNSList []string + DefaultImage string + MetadataBucket string + ProviderNetwork string + UseFloatingIP bool + UseLayer3Networking bool + VolumeSpeeds map[string]VolumeSpeed.Enum + type Client struct + Cfg *CfgOptions + Compute *gc.ServiceClient + Network *gc.ServiceClient + Opts *AuthOptions + Provider *gc.ProviderClient + ProviderNetworkID string + SecurityGroup *secgroups.SecurityGroup + Volume *gc.ServiceClient + func AuthenticatedClient(opts AuthOptions, cfg CfgOptions) (*Client, error) + func (client *Client) Build(params map[string]interface{}) (api.ClientAPI, error) + func (client *Client) CreateGateway(req model.GatewayRequest) (*model.Host, error) + func (client *Client) CreateHost(request model.HostRequest) (*model.Host, error) + func (client *Client) CreateKeyPair(name string) (*model.KeyPair, error) + func (client *Client) CreateNetwork(req model.NetworkRequest) (*model.Network, error) + func (client *Client) CreateVolume(request model.VolumeRequest) (*model.Volume, error) + func (client *Client) CreateVolumeAttachment(request model.VolumeAttachmentRequest) (string, error) + func (client *Client) DeleteGateway(id string) error + func (client *Client) DeleteHost(id string) error + func (client *Client) DeleteKeyPair(id string) error + func (client *Client) DeleteNetwork(id string) error + func (client *Client) DeleteVolume(id string) error + func (client *Client) DeleteVolumeAttachment(serverID, vaID string) error + func (client *Client) GetAuthOpts() (model.Config, error) + func (client *Client) GetCfgOpts() (model.Config, error) + func (client *Client) GetHost(hostParam interface{}) (*model.Host, error) + func (client *Client) GetHostByName(name string) (*model.Host, error) + func (client *Client) GetHostState(hostParam interface{}) (HostState.Enum, error) + func (client *Client) GetImage(id string) (*model.Image, error) + func (client *Client) GetKeyPair(id string) (*model.KeyPair, error) + func (client *Client) GetNetwork(id string) (*model.Network, error) + func (client *Client) GetNetworkByName(name string) (*model.Network, error) + func (client *Client) GetTemplate(id string) (*model.HostTemplate, error) + func (client *Client) GetVolume(id string) (*model.Volume, error) + func (client *Client) GetVolumeAttachment(serverID, id string) (*model.VolumeAttachment, error) + func (client *Client) ListAvailabilityZones(all bool) (map[string]bool, error) + func (client *Client) ListHosts() ([]*model.Host, error) + func (client *Client) ListImages(all bool) ([]model.Image, error) + func (client *Client) ListKeyPairs() ([]model.KeyPair, error) + func (client *Client) ListNetworks() ([]*model.Network, error) + func (client *Client) ListRouters() ([]Router, error) + func (client *Client) ListTemplates(all bool) ([]model.HostTemplate, error) + func (client *Client) ListVolumeAttachments(serverID string) ([]model.VolumeAttachment, error) + func (client *Client) ListVolumes() ([]model.Volume, error) + func (client *Client) RebootHost(id string) error + func (client *Client) StartHost(id string) error + func (client *Client) StopHost(id string) error + func (client *Client) WaitHostReady(hostParam interface{}, timeout time.Duration) (*model.Host, error) + type Router struct + ID string + Name string + NetworkID string + type RouterRequest struct + Name string + NetworkID string + type Subnet struct + ID string + IPVersion IPVersion.Enum + Mask string + Name string + NetworkID string