Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2014 Changes in this version + const IPv4 + const IPv6 + func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type AdminState *bool + var Down AdminState = &iFalse + var Up AdminState = &iTrue + type AllocationPool struct + End string + Start string + type CreateOpts struct + AllocationPools []AllocationPool + CIDR string + DNSNameservers []string + EnableDHCP *bool + GatewayIP string + HostRoutes []HostRoute + IPVersion int + Name string + NetworkID string + TenantID string + func (opts CreateOpts) ToSubnetCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToSubnetCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) CreateResult + func (r CreateResult) Extract() (*Subnet, error) + type DeleteResult struct + func Delete(c *gophercloud.ServiceClient, id string) DeleteResult + type GetResult struct + func Get(c *gophercloud.ServiceClient, id string) GetResult + func (r GetResult) Extract() (*Subnet, error) + type HostRoute struct + DestinationCIDR string + NextHop string + type ListOpts struct + CIDR string + EnableDHCP *bool + GatewayIP string + ID string + IPVersion int + Limit int + Marker string + Name string + NetworkID string + SortDir string + SortKey string + TenantID string + func (opts ListOpts) ToSubnetListQuery() (string, error) + type ListOptsBuilder interface + ToSubnetListQuery func() (string, error) + type Subnet struct + AllocationPools []AllocationPool + CIDR string + DNSNameservers []string + EnableDHCP bool + GatewayIP string + HostRoutes []HostRoute + ID string + IPVersion int + Name string + NetworkID string + TenantID string + func ExtractSubnets(page pagination.Page) ([]Subnet, error) + type SubnetPage struct + func (p SubnetPage) IsEmpty() (bool, error) + func (p SubnetPage) NextPageURL() (string, error) + type UpdateOpts struct + DNSNameservers []string + EnableDHCP *bool + GatewayIP string + HostRoutes []HostRoute + Name string + func (opts UpdateOpts) ToSubnetUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToSubnetUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) UpdateResult + func (r UpdateResult) Extract() (*Subnet, error)