Documentation ¶
Index ¶
- type NeutronClient
- func (n *NeutronClient) AllocateNeutronEndpointPort(target *models.EndpointTarget, endpoint *models.Endpoint, projectID string, ...) (*ports.Port, error)
- func (n NeutronClient) ClearCache(networkId string)
- func (n *NeutronClient) DeletePort(portId string) error
- func (n *NeutronClient) EnsureNeutronSelfIPs(deviceIDs []string, subnetID string, dryRun bool) (map[string]*ports.Port, error)
- func (n *NeutronClient) FetchSNATPorts(networkId string) (map[string]*ports.Port, error)
- func (n *NeutronClient) GetMask(subnetID string) (int, error)
- func (n *NeutronClient) GetNetwork(networkId string) (*networks.Network, error)
- func (n *NeutronClient) GetNetworkSegment(networkId string) (int, error)
- func (n *NeutronClient) GetPort(portId string) (*ports.Port, error)
- func (n *NeutronClient) InitCache()
- func (n *NeutronClient) ResetCache()
- type PortListOpts
- type PortListOptsExt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NeutronClient ¶
type NeutronClient struct { *gophercloud.ServiceClient // contains filtered or unexported fields }
func ConnectToNeutron ¶
func ConnectToNeutron(providerClient *gophercloud.ProviderClient) (*NeutronClient, error)
func (*NeutronClient) AllocateNeutronEndpointPort ¶
func (n *NeutronClient) AllocateNeutronEndpointPort(target *models.EndpointTarget, endpoint *models.Endpoint, projectID string, host string, client *gophercloud.ServiceClient) (*ports.Port, error)
func (NeutronClient) ClearCache ¶ added in v1.1.0
func (n NeutronClient) ClearCache(networkId string)
func (*NeutronClient) DeletePort ¶
func (n *NeutronClient) DeletePort(portId string) error
func (*NeutronClient) EnsureNeutronSelfIPs ¶ added in v1.1.0
func (n *NeutronClient) EnsureNeutronSelfIPs(deviceIDs []string, subnetID string, dryRun bool) (map[string]*ports.Port, error)
EnsureNeutronSelfIPs ensures that a SelfIPs exists for the given deviceID and subnetID
func (*NeutronClient) FetchSNATPorts ¶ added in v1.1.0
TODO: Remove after a while
func (*NeutronClient) GetMask ¶ added in v1.1.0
func (n *NeutronClient) GetMask(subnetID string) (int, error)
func (*NeutronClient) GetNetwork ¶ added in v1.1.0
func (n *NeutronClient) GetNetwork(networkId string) (*networks.Network, error)
func (*NeutronClient) GetNetworkSegment ¶
func (n *NeutronClient) GetNetworkSegment(networkId string) (int, error)
func (*NeutronClient) InitCache ¶ added in v1.1.0
func (n *NeutronClient) InitCache()
func (*NeutronClient) ResetCache ¶ added in v1.1.0
func (n *NeutronClient) ResetCache()
type PortListOpts ¶
type PortListOpts struct {
IDs []string
}
func (PortListOpts) ToPortListQuery ¶
func (opts PortListOpts) ToPortListQuery() (string, error)
type PortListOptsExt ¶ added in v1.1.0
type PortListOptsExt struct { ports.ListOptsBuilder // The ID of the host where the port is allocated HostID string }
PortListOptsExt adds the PortBinding options to the base port ListOpts.
func (PortListOptsExt) ToPortListQuery ¶ added in v1.1.0
func (opts PortListOptsExt) ToPortListQuery() (string, error)
ToPortListQuery adds the PortBinding options to the base port list options.
Click to show internal directories.
Click to hide internal directories.