Documentation ¶
Overview ¶
ports unit tests
Index ¶
Constants ¶
View Source
const CreateRequest = `
{
"subnet": {
"cidr": "192.168.10.0/24",
"network_id": "8f36b88a-443f-4d97-9751-34d34af9e782"
}
}
`
View Source
const CreateResponse = `` /* 546-byte string literal not displayed */
View Source
const GetResponse = `` /* 597-byte string literal not displayed */
View Source
const ListResponse = `` /* 1163-byte string literal not displayed */
View Source
const UpdateRequest = `` /* 398-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 745-byte string literal not displayed */
Variables ¶
View Source
var ExpectedSubnetSlice = []subnets.Subnet{Subnet1, Subnet2}
View Source
var Subnet1 = subnets.Subnet{ AllocationPools: []subnets.AllocationPool{ { End: "192.168.2.254", Start: "192.168.2.2", }, }, CIDR: "192.168.2.0/24", Description: "", DNSNameservers: []string{ "0.0.0.0", }, EnableDHCP: true, GatewayIP: "192.168.2.1", HostRoutes: []subnets.HostRoute{}, ID: "ab49eb24-667f-4a4e-9421-b4d915bff416", IPVersion: 4, Name: "", NetworkID: "8f36b88a-443f-4d97-9751-34d34af9e782", NTPServers: []string{}, Status: "ACTIVE", Tags: map[string]string{}, TenantID: "dcb2d589c0c646d0bad45c0cf9f90cf1", }
View Source
var Subnet2 = subnets.Subnet{ AllocationPools: []subnets.AllocationPool{ { End: "192.168.10.254", Start: "192.168.10.2", }, }, CIDR: "192.168.10.0/24", Description: "", DNSNameservers: []string{ "0.0.0.0", }, EnableDHCP: true, GatewayIP: "192.168.10.1", HostRoutes: []subnets.HostRoute{}, ID: "f6aa2d33-f3ae-4c4e-82f7-0d4ab4c67678", IPVersion: 4, Name: "", NetworkID: "8f36b88a-443f-4d97-9751-34d34af9e782", NTPServers: []string{}, Status: "ACTIVE", Tags: map[string]string{}, TenantID: "dcb2d589c0c646d0bad45c0cf9f90cf1", }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.