Documentation ¶
Index ¶
- Constants
- Variables
- func CreateListener(client *gophercloud.ServiceClient, lbID uint64, opts listeners.CreateOpts) (*listeners.Listener, error)
- func DeleteLoadbalancer(client *gophercloud.ServiceClient, lbID uint64) error
- func GetFloatingIPByPortID(client *gophercloud.ServiceClient, portID string) (*floatingips.FloatingIP, error)
- func GetFloatingIPs(client *gophercloud.ServiceClient, opts floatingips.ListOpts) ([]floatingips.FloatingIP, error)
- func GetListenerByName(client *gophercloud.ServiceClient, name string, lbID string) (*listeners.Listener, error)
- func GetLoadBalancerByPort(lbs []loadbalancers.LoadBalancer, port corev1.ServicePort) (*loadbalancers.LoadBalancer, error)
- func GetLoadBalancersByName(client *gophercloud.ServiceClient, name string) ([]loadbalancers.LoadBalancer, error)
- func GetPoolByName(client *gophercloud.ServiceClient, name string, lbID string) (*pools.Pool, error)
- func IsOctaviaFeatureSupported(client *gophercloud.ServiceClient, feature int) bool
- func UpdateListener(client *gophercloud.ServiceClient, lbID uint64, listenerID string, ...) error
Constants ¶
const ( OctaviaFeatureTags = 0 OctaviaFeatureVIPACL = 1 )
Variables ¶
var ( // ErrNotFound is used to inform that the object is missing ErrNotFound = errors.New("failed to find object") // ErrMultipleResults is used when we unexpectedly get back multiple results ErrMultipleResults = errors.New("multiple results where only one expected") )
Functions ¶
func CreateListener ¶
func CreateListener(client *gophercloud.ServiceClient, lbID uint64, opts listeners.CreateOpts) (*listeners.Listener, error)
CreateListener creates a new listener
func DeleteLoadbalancer ¶
func DeleteLoadbalancer(client *gophercloud.ServiceClient, lbID uint64) error
DeleteLoadbalancer deletes a loadbalancer with all its child objects.
func GetFloatingIPByPortID ¶
func GetFloatingIPByPortID(client *gophercloud.ServiceClient, portID string) (*floatingips.FloatingIP, error)
GetFloatingIPByPortID get the floating IP of the given port.
func GetFloatingIPs ¶
func GetFloatingIPs(client *gophercloud.ServiceClient, opts floatingips.ListOpts) ([]floatingips.FloatingIP, error)
GetFloatingIPs returns all the filtered floating IPs
func GetListenerByName ¶
func GetListenerByName(client *gophercloud.ServiceClient, name string, lbID string) (*listeners.Listener, error)
GetListenerByName gets a listener by its name, raise error if not found or get multiple ones.
func GetLoadBalancerByPort ¶
func GetLoadBalancerByPort(lbs []loadbalancers.LoadBalancer, port corev1.ServicePort) (*loadbalancers.LoadBalancer, error)
GetLoadBalancerByPort gets the specific load balancer from a list of load balancers
func GetLoadBalancersByName ¶
func GetLoadBalancersByName(client *gophercloud.ServiceClient, name string) ([]loadbalancers.LoadBalancer, error)
GetLoadbalancerByName get the load balancer which is in valid status by the given name.
func GetPoolByName ¶
func GetPoolByName(client *gophercloud.ServiceClient, name string, lbID string) (*pools.Pool, error)
GetPoolByName gets a pool by its name, raise error if not found or get multiple ones.
func IsOctaviaFeatureSupported ¶
func IsOctaviaFeatureSupported(client *gophercloud.ServiceClient, feature int) bool
IsOctaviaFeatureSupported returns true if the given feature is supported in the deployed Octavia version.
func UpdateListener ¶
func UpdateListener(client *gophercloud.ServiceClient, lbID uint64, listenerID string, opts listeners.UpdateOpts) error
UpdateListener updates a listener and wait for the lb active
Types ¶
This section is empty.