package throttle

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/throttle"

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

Index

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.

Source Files

doc.go fixtures.go requests.go results.go urls.go

Version
v1.1.4-beta.0
Published
Dec 7, 2015
Platform
linux/amd64
Imports
9 packages
Last checked
26 seconds ago

Tools for package owners.