throttle

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package throttle provides information and interaction with the Connection Throttling feature of the Rackspace Cloud Load Balancer service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionThrottle

type ConnectionThrottle struct {
	MaxConnections int
}

ConnectionThrottle represents the connection throttle configuration for a particular load balancer.

type CreateOpts

type CreateOpts struct {
	// Required - the maximum amount of connections per IP address to allow per LB.
	MaxConnections int

	// Deprecated as of v1.22.
	MaxConnectionRate int

	// Deprecated as of v1.22.
	MinConnections int

	// Deprecated as of v1.22.
	RateInterval int
}

CreateOpts is the common options struct used in this package's Create operation.

func (CreateOpts) ToCTCreateMap

func (opts CreateOpts) ToCTCreateMap() (map[string]interface{}, error)

ToCTCreateMap casts a CreateOpts struct to a map.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToCTCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Create operation in this package.

type CreateResult

type CreateResult struct {
	gophercloud.ErrResult
}

CreateResult represents the result of a create operation.

func Create

Create is the operation responsible for creating or updating the connection throttling configuration for a load balancer.

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

DeleteResult represents the result of a delete operation.

func Delete

func Delete(c *gophercloud.ServiceClient, lbID int) DeleteResult

Delete is the operation responsible for deleting the connection throttling configuration for a load balancer.

type GetResult

type GetResult struct {
	gophercloud.Result
}

GetResult represents the result of a get operation.

func Get

func Get(c *gophercloud.ServiceClient, lbID int) GetResult

Get is the operation responsible for showing the details of the connection throttling configuration for a load balancer.

func (GetResult) Extract

func (r GetResult) Extract() (*ConnectionThrottle, error)

Extract interprets a GetResult as a SP, if possible.

Jump to

Keyboard shortcuts

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