openstack

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OctaviaFeatureTags              = 0
	OctaviaFeatureVIPACL            = 1
	OctaviaFeatureFlavors           = 2
	OctaviaFeatureTimeout           = 3
	OctaviaFeatureAvailabilityZones = 4
)

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 BatchUpdatePoolMembers added in v1.19.0

func BatchUpdatePoolMembers(client *gophercloud.ServiceClient, lbID, poolID string, opts []pools.BatchUpdateMemberOpts) error

func CreateListener

func CreateListener(client *gophercloud.ServiceClient, lbID string, opts listeners.CreateOpts) (*listeners.Listener, error)

CreateListener creates a new listener

func CreateSecret added in v1.18.0

func CreateSecret(client *gophercloud.ServiceClient, name string, secretType string, payload string) (string, error)

CreateSecret creates a secret in Barbican, returns the secret url.

func DeleteLoadbalancer added in v1.18.0

func DeleteLoadbalancer(client *gophercloud.ServiceClient, lbID string) error

DeleteLoadbalancer deletes a loadbalancer with all its child objects.

func DeleteSecrets added in v1.18.0

func DeleteSecrets(client *gophercloud.ServiceClient, partName string) error

DeleteSecrets deletes all the secrets that including the name string.

func EnsureSecret added in v1.18.0

func EnsureSecret(client *gophercloud.ServiceClient, name string, secretType string, payload string) (string, error)

EnsureSecret creates a secret if it doesn't exist.

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 added in v1.18.0

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 GetLoadbalancerByName added in v1.18.0

func GetLoadbalancerByName(client *gophercloud.ServiceClient, name string) (*loadbalancers.LoadBalancer, error)

GetLoadbalancerByName retrieves loadbalancer object

func GetMembersbyPool added in v1.19.0

func GetMembersbyPool(client *gophercloud.ServiceClient, poolID string) ([]pools.Member, error)

GetMembersbyPool get all the members in the pool.

func GetPoolByListener added in v1.19.0

func GetPoolByListener(client *gophercloud.ServiceClient, lbID, listenerID string) (*pools.Pool, error)

GetPoolsByListener finds pool for a listener. A listener always has exactly one pool.

func GetPoolByName added in v1.18.0

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 GetSecret added in v1.18.0

func GetSecret(client *gophercloud.ServiceClient, name string) (*secrets.Secret, error)

GetSecret returns the secret by name

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 ParseSecretID added in v1.18.0

func ParseSecretID(ref string) (string, error)

ParseSecretID return secret ID from serectRef

func UpdateListener

func UpdateListener(client *gophercloud.ServiceClient, lbID string, 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