Documentation ¶
Index ¶
Constants ¶
const TestCreateVRRPSubnetsOptsRaw = `` /* 246-byte string literal not displayed */
TestCreateVRRPSubnetsOptsRaw represents marshalled options for the Create request.
const TestCreateVRRPSubnetsResponseRaw = `` /* 761-byte string literal not displayed */
TestCreateVRRPSubnetsResponseRaw represents a raw response from the Create request.
const TestGetVRRPSubnetResponseRaw = `` /* 910-byte string literal not displayed */
TestGetVRRPSubnetResponseRaw represents a raw response from the Get request.
const TestListVRRPSubnetsResponseRaw = `` /* 1035-byte string literal not displayed */
TestListVRRPSubnetsResponseRaw represents a raw response from the List request.
const TestManyVRRPSubnetsInvalidResponseRaw = `
{
"vrrp_subnets": [
{
"id": "49338ac045f448e294b25d013f890317"
}
]
}
`
TestManyVRRPSubnetsInvalidResponseRaw represents a raw invalid response with several VRRP subnets.
const TestSingleVRRPSubnetInvalidResponseRaw = `
{
"vrrp_subnet": {
"id": "49338ac045f448e294b25d013f890317"
}
}
`
TestSingleVRRPSubnetInvalidResponseRaw represents a raw invalid response with a single VRRP subnet.
Variables ¶
var TestCreateVRRPSubnetsOpts = vrrpsubnets.VRRPSubnetOpts{ VRRPSubnets: []vrrpsubnets.VRRPSubnetOpt{ { Quantity: 1, Regions: vrrpsubnets.VRRPRegionOpt{ Master: "ru-2", Slave: "ru-1", }, Type: selvpcclient.IPv4, PrefixLength: 29, }, }, }
TestCreateVRRPSubnetsOpts represents options for the Create request.
var TestCreateVRRPSubnetsResponse = []*vrrpsubnets.VRRPSubnet{ { ID: 186, Status: "ACTIVE", CIDR: "203.0.113.0/24", ProjectID: "49338ac045f448e294b25d013f890317", MasterRegion: "ru-2", SlaveRegion: "ru-1", Subnets: []subnets.Subnet{ { Region: "ru-1", NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119", SubnetID: "94425a6e-19cd-412d-9710-ff40b34a78f4", }, { Region: "ru-2", NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e", SubnetID: "649231cc-a17f-4c6b-8bf3-51a8871104c5", }, }, }, }
TestCreateVRRPSubnetsResponse represents an unmarshalled TestCreateVRRPSubnetsResponseRaw.
var TestGetVRRPSubnetResponse = &vrrpsubnets.VRRPSubnet{ ID: 186, Status: "ACTIVE", Servers: []servers.Server{ { ID: "253b680c-89f6-4c85-afbf-c9a67c92d3fe", Name: "Node02", Status: "ACTIVE", Updated: vrrpSubnetServerTimeStamp, }, }, MasterRegion: "ru-2", SlaveRegion: "ru-1", CIDR: "203.0.113.0/24", Subnets: []subnets.Subnet{ { Region: "ru-1", NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119", SubnetID: "94425a6e-19cd-412d-9710-ff40b34a78f4", }, { Region: "ru-2", NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e", SubnetID: "649231cc-a17f-4c6b-8bf3-51a8871104c5", }, }, ProjectID: "49338ac045f448e294b25d013f890317", }
TestGetVRRPSubnetResponse represents an unmarshalled TestGetSubnetResponseRaw.
var TestListVRRPSubnetsResponse = []*vrrpsubnets.VRRPSubnet{ { ID: 186, Status: "ACTIVE", Servers: []servers.Server{ { ID: "253b680c-89f6-4c85-afbf-c9a67c92d3fe", Name: "Node02", Status: "ACTIVE", Updated: vrrpSubnetServerTimeStamp, }, }, CIDR: "203.0.113.0/24", ProjectID: "49338ac045f448e294b25d013f890317", MasterRegion: "ru-2", SlaveRegion: "ru-1", Subnets: []subnets.Subnet{ { Region: "ru-1", NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119", SubnetID: "94425a6e-19cd-412d-9710-ff40b34a78f4", }, { Region: "ru-2", NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e", SubnetID: "649231cc-a17f-4c6b-8bf3-51a8871104c5", }, }, }, }
TestListVRRPSubnetsResponse represents an unmarshalled TestListVRRPSubnetsResponseRaw.
Functions ¶
This section is empty.
Types ¶
This section is empty.