Versions in this module Expand all Collapse all v3 v3.0.0 Jan 5, 2022 Changes in this version + func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type AllocationPool struct + End string + Start string + type CreateOpts struct + AllocationPools []AllocationPool + CIDR string + DNSNameservers []string + Description string + EnableDHCP *bool + GatewayIP *string + HostRoutes []HostRoute + IPVersion gophercloud.IPVersion + IPv6AddressMode string + IPv6RAMode string + Name string + NetworkID string + Prefixlen int + ProjectID string + SubnetPoolID 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) (r CreateResult) + func (r CreateResult) Extract() (*Subnet, error) + type DeleteResult struct + func Delete(c *gophercloud.ServiceClient, id string) (r DeleteResult) + type GetResult struct + func Get(c *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Subnet, error) + type HostRoute struct + DestinationCIDR string + NextHop string + type ListOpts struct + CIDR string + Description string + EnableDHCP *bool + GatewayIP string + ID string + IPVersion int + IPv6AddressMode string + IPv6RAMode string + Limit int + Marker string + Name string + NetworkID string + NotTags string + NotTagsAny string + ProjectID string + SortDir string + SortKey string + SubnetPoolID string + Tags string + TagsAny 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 + Description string + EnableDHCP bool + GatewayIP string + HostRoutes []HostRoute + ID string + IPVersion int + IPv6AddressMode string + IPv6RAMode string + Name string + NetworkID string + ProjectID string + SubnetPoolID string + Tags []string + TenantID string + func ExtractSubnets(r pagination.Page) ([]Subnet, error) + type SubnetPage struct + func (r SubnetPage) IsEmpty() (bool, error) + func (r SubnetPage) NextPageURL() (string, error) + type UpdateOpts struct + AllocationPools []AllocationPool + DNSNameservers *[]string + Description *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) (r UpdateResult) + func (r UpdateResult) Extract() (*Subnet, error) Other modules containing this package github.com/pierreprinetti/gophercloud github.com/pierreprinetti/gophercloud/v2