gophercloud: github.com/rackspace/gophercloud/rackspace/lb/v1/throttle Index | Files

package throttle

import "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

Package Files

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

type ConnectionThrottle Uses

type ConnectionThrottle struct {
    MaxConnections int
}

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

type CreateOpts Uses

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 Uses

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

ToCTCreateMap casts a CreateOpts struct to a map.

type CreateOptsBuilder Uses

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 Uses

type CreateResult struct {
    gophercloud.ErrResult
}

CreateResult represents the result of a create operation.

func Create Uses

func Create(c *gophercloud.ServiceClient, lbID int, opts CreateOptsBuilder) CreateResult

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

type DeleteResult Uses

type DeleteResult struct {
    gophercloud.ErrResult
}

DeleteResult represents the result of a delete operation.

func Delete Uses

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 Uses

type GetResult struct {
    gophercloud.Result
}

GetResult represents the result of a get operation.

func Get Uses

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 Uses

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

Extract interprets a GetResult as a SP, if possible.

Package throttle imports 4 packages (graph) and is imported by 1 packages. Updated 2016-07-23. Refresh now. Tools for package owners.