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.
List is the operation responsible for returning a paginated collection of network items that define a load balancer's access list.
AccessList represents the rules of network access to a particular load balancer.
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.
AccessListPage is the page returned by a pager for traversing over a collection of network items in an access list.
IsEmpty checks whether an AccessListPage struct is empty.
CreateOpt represents the options to create a single node.
CreateOpts is a slice of CreateOpt structs, that allow the user to create multiple nodes in a single operation (one node per CreateOpt).
ToAccessListCreateMap converts a slice of options into a map that can be used for the JSON.
CreateOptsBuilder is the interface responsible for generating the JSON for a Create operation.
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.
DeleteResult represents the result of a delete operation.
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.
DeleteAll will delete the entire contents of a load balancer's access list, effectively resetting it and allowing all traffic.
NetworkItem describes how an IP address or entire subnet may interact with a load balancer.
Type defines how an item may connect to the load balancer.