openstack

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OctaviaFeatureTags   = 0
	OctaviaFeatureVIPACL = 1
)

Variables

View Source
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.

Jump to

Keyboard shortcuts

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