openstack

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 18 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 string, poolID string, opts []pools.BatchUpdateMemberOpts) error

BatchUpdatePoolMembers updates pool members in batch.

func CreateL7Policy added in v1.19.4

func CreateL7Policy(client *gophercloud.ServiceClient, opts l7policies.CreateOpts, lbID string) (*l7policies.L7Policy, error)

CreateL7Policy creates a l7 policy.

func CreateL7Rule added in v1.19.4

func CreateL7Rule(client *gophercloud.ServiceClient, policyID string, opts l7policies.CreateRuleOpts, lbID string) error

CreateL7Rule creates a l7 rule.

func CreateListener

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

CreateListener creates a new listener

func CreatePool added in v1.19.4

func CreatePool(client *gophercloud.ServiceClient, opts pools.CreateOptsBuilder, lbID string) (*pools.Pool, error)

CreatePool creates a new pool.

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

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

DeleteL7policy deletes a l7 policy.

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

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

DeletePool deletes a pool.

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

func GetL7Rules(client *gophercloud.ServiceClient, policyID string) ([]l7policies.Rule, error)

GetL7Rules gets all the rules for a l7 policy

func GetL7policies added in v1.19.4

func GetL7policies(client *gophercloud.ServiceClient, listenerID string) ([]l7policies.L7Policy, error)

GetL7policies retrieves all l7 policies for the given listener.

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

func GetPools(client *gophercloud.ServiceClient, lbID string) ([]pools.Pool, error)

GetPools retrives the pools belong to the loadbalancer.

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