Package acl provides information and interaction with the access lists feature of the Rackspace Cloud Load Balancer service.
The access list management feature allows fine-grained network access controls to be applied to the load balancer's virtual IP address. A single IP address, multiple IP addresses, or entire network subnets can be added. Items that are configured with the ALLOW type always takes precedence over items with the DENY type. To reject traffic from all items except for those with the ALLOW type, add a networkItem with an address of "0.0.0.0/0" and a DENY type.
- func List(client *gophercloud.ServiceClient, lbID int) pagination.Pager
- type AccessList
- type AccessListPage
- type CreateOpt
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type NetworkItem
- type Type
This section is empty.
This section is empty.
type AccessList ¶
type AccessList NetworkItem
AccessList represents the rules of network access to a particular load balancer.
func ExtractAccessList ¶
ExtractAccessList accepts a Page struct, specifically an AccessListPage struct, and extracts the elements into a slice of NetworkItem structs. In other words, a generic collection is mapped into a relevant slice.
type AccessListPage ¶
AccessListPage is the page returned by a pager for traversing over a collection of network items in an access list.
CreateOpt represents the options to create a single node.
type CreateOpts ¶
type CreateOpts CreateOpt
CreateOpts is a slice of CreateOpt structs, that allow the user to create multiple nodes in a single operation (one node per CreateOpt).
type CreateOptsBuilder ¶
CreateOptsBuilder is the interface responsible for generating the JSON for a Create operation.
type CreateResult ¶
CreateResult represents the result of a create operation.
func Create(client *gophercloud.ServiceClient, loadBalancerID int, opts CreateOptsBuilder) CreateResult
Create is the operation responsible for adding network items to the access rules for a particular load balancer. If network items already exist, the new item will be appended. A single IP address or subnet range is considered unique and cannot be duplicated.
type DeleteResult ¶
DeleteResult represents the result of a delete operation.
func BulkDelete ¶
BulkDelete will delete multiple network items from a load balancer's access list in a single operation.
Delete will remove a single network item from a load balancer's access list.
type NetworkItem ¶
NetworkItem describes how an IP address or entire subnet may interact with a load balancer.