Documentation ¶
Index ¶
- Constants
- Variables
- func BatchUpdatePoolMembers(client *gophercloud.ServiceClient, lbID string, poolID string, ...) error
- func CreateHealthMonitor(client *gophercloud.ServiceClient, opts monitors.CreateOpts, lbID string) (*monitors.Monitor, error)
- func CreateL7Policy(client *gophercloud.ServiceClient, opts l7policies.CreateOpts, lbID string) (*l7policies.L7Policy, error)
- func CreateL7Rule(client *gophercloud.ServiceClient, policyID string, ...) error
- func CreateListener(client *gophercloud.ServiceClient, lbID string, opts listeners.CreateOpts) (*listeners.Listener, error)
- func CreatePool(client *gophercloud.ServiceClient, opts pools.CreateOptsBuilder, lbID string) (*pools.Pool, error)
- func CreateSecret(client *gophercloud.ServiceClient, name string, secretType string, ...) (string, error)
- func DeleteHealthMonitor(client *gophercloud.ServiceClient, monitorID string, lbID string) error
- func DeleteL7policy(client *gophercloud.ServiceClient, policyID string, lbID string) error
- func DeleteListener(client *gophercloud.ServiceClient, listenerID string, lbID string) error
- func DeleteLoadbalancer(client *gophercloud.ServiceClient, lbID string, cascade bool) error
- func DeletePool(client *gophercloud.ServiceClient, poolID string, lbID string) error
- func DeleteSecrets(client *gophercloud.ServiceClient, partName string) error
- func EnsureSecret(client *gophercloud.ServiceClient, name string, secretType string, ...) (string, error)
- func GetFloatingIPByPortID(client *gophercloud.ServiceClient, portID string) (*floatingips.FloatingIP, error)
- func GetFloatingIPs(client *gophercloud.ServiceClient, opts floatingips.ListOpts) ([]floatingips.FloatingIP, error)
- func GetFloatingNetworkID(client *gophercloud.ServiceClient) (string, error)
- func GetHealthMonitor(client *gophercloud.ServiceClient, monitorID string) (*monitors.Monitor, error)
- func GetL7Rules(client *gophercloud.ServiceClient, policyID string) ([]l7policies.Rule, error)
- func GetL7policies(client *gophercloud.ServiceClient, listenerID string) ([]l7policies.L7Policy, error)
- func GetListenerByName(client *gophercloud.ServiceClient, name string, lbID string) (*listeners.Listener, error)
- func GetListenersByLoadBalancerID(client *gophercloud.ServiceClient, lbID string) ([]listeners.Listener, error)
- func GetLoadBalancers(client *gophercloud.ServiceClient, opts loadbalancers.ListOpts) ([]loadbalancers.LoadBalancer, error)
- func GetLoadbalancerByID(client *gophercloud.ServiceClient, lbID string) (*loadbalancers.LoadBalancer, error)
- func GetLoadbalancerByName(client *gophercloud.ServiceClient, name string) (*loadbalancers.LoadBalancer, error)
- func GetMembersbyPool(client *gophercloud.ServiceClient, poolID string) ([]pools.Member, error)
- func GetNetworkExtensions(client *gophercloud.ServiceClient) (map[string]bool, error)
- func GetPoolByListener(client *gophercloud.ServiceClient, lbID, listenerID string) (*pools.Pool, error)
- func GetPoolByName(client *gophercloud.ServiceClient, name string, lbID string) (*pools.Pool, error)
- func GetPools(client *gophercloud.ServiceClient, lbID string) ([]pools.Pool, error)
- func GetPorts(client *gophercloud.ServiceClient, listOpts neutronports.ListOpts) ([]neutronports.Port, error)
- func GetSecret(client *gophercloud.ServiceClient, name string) (*secrets.Secret, error)
- func IsOctaviaFeatureSupported(client *gophercloud.ServiceClient, feature int, lbProvider string) bool
- func ParseSecretID(ref string) (string, error)
- func UpdateHealthMonitor(client *gophercloud.ServiceClient, monitorID string, opts monitors.UpdateOpts) error
- func UpdateListener(client *gophercloud.ServiceClient, lbID string, listenerID string, ...) error
- func UpdateLoadBalancerTags(client *gophercloud.ServiceClient, lbID string, tags []string) error
- func WaitLoadbalancerActive(client *gophercloud.ServiceClient, loadbalancerID string) error
Constants ¶
const ( OctaviaFeatureTags = 0 OctaviaFeatureVIPACL = 1 OctaviaFeatureFlavors = 2 OctaviaFeatureTimeout = 3 OctaviaFeatureAvailabilityZones = 4 )
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 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 CreateHealthMonitor ¶ added in v1.23.0
func CreateHealthMonitor(client *gophercloud.ServiceClient, opts monitors.CreateOpts, lbID string) (*monitors.Monitor, error)
CreateHealthMonitor creates a health monitor in a pool.
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 DeleteHealthMonitor ¶ added in v1.23.0
func DeleteHealthMonitor(client *gophercloud.ServiceClient, monitorID string, lbID string) error
DeleteHealthMonitor deletes a health monitor.
func DeleteL7policy ¶ added in v1.19.4
func DeleteL7policy(client *gophercloud.ServiceClient, policyID string, lbID string) error
DeleteL7policy deletes a l7 policy.
func DeleteListener ¶ added in v1.23.0
func DeleteListener(client *gophercloud.ServiceClient, listenerID string, lbID string) error
DeleteListener deletes a listener.
func DeleteLoadbalancer ¶ added in v1.18.0
func DeleteLoadbalancer(client *gophercloud.ServiceClient, lbID string, cascade bool) error
DeleteLoadbalancer deletes a loadbalancer and wait for it's gone.
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 GetFloatingNetworkID ¶ added in v1.23.0
func GetFloatingNetworkID(client *gophercloud.ServiceClient) (string, error)
GetFloatingNetworkID returns a floating network ID.
func GetHealthMonitor ¶ added in v1.23.0
func GetHealthMonitor(client *gophercloud.ServiceClient, monitorID string) (*monitors.Monitor, error)
GetHealthMonitor gets details about loadbalancer health monitor.
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 GetListenersByLoadBalancerID ¶ added in v1.23.0
func GetListenersByLoadBalancerID(client *gophercloud.ServiceClient, lbID string) ([]listeners.Listener, error)
GetListenersByLoadBalancerID returns listener list
func GetLoadBalancers ¶ added in v1.23.0
func GetLoadBalancers(client *gophercloud.ServiceClient, opts loadbalancers.ListOpts) ([]loadbalancers.LoadBalancer, error)
GetLoadBalancers returns all the filtered load balancer.
func GetLoadbalancerByID ¶ added in v1.23.0
func GetLoadbalancerByID(client *gophercloud.ServiceClient, lbID string) (*loadbalancers.LoadBalancer, error)
GetLoadbalancerByID retrieves loadbalancer object
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 GetNetworkExtensions ¶ added in v1.23.0
func GetNetworkExtensions(client *gophercloud.ServiceClient) (map[string]bool, error)
GetNetworkExtensions returns an extension map.
func GetPoolByListener ¶ added in v1.19.0
func GetPoolByListener(client *gophercloud.ServiceClient, lbID, listenerID string) (*pools.Pool, error)
GetPoolByListener 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 GetPorts ¶ added in v1.23.0
func GetPorts(client *gophercloud.ServiceClient, listOpts neutronports.ListOpts) ([]neutronports.Port, error)
GetPorts gets all the filtered ports.
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, lbProvider string) bool
IsOctaviaFeatureSupported returns true if the given feature is supported in the deployed Octavia version.
func ParseSecretID ¶ added in v1.18.0
ParseSecretID return secret ID from serectRef
func UpdateHealthMonitor ¶ added in v1.24.0
func UpdateHealthMonitor(client *gophercloud.ServiceClient, monitorID string, opts monitors.UpdateOpts) error
UpdateHealthMonitor updates a health monitor.
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
func UpdateLoadBalancerTags ¶ added in v1.23.0
func UpdateLoadBalancerTags(client *gophercloud.ServiceClient, lbID string, tags []string) error
UpdateLoadBalancerTags updates tags for the load balancer
func WaitLoadbalancerActive ¶ added in v1.23.0
func WaitLoadbalancerActive(client *gophercloud.ServiceClient, loadbalancerID string) error
Types ¶
This section is empty.