Documentation ¶
Index ¶
Constants ¶
const TestCreateFloatingIPOptsRaw = `` /* 185-byte string literal not displayed */
TestCreateFloatingIPOptsRaw represents marshalled options for the Create request.
const TestCreateFloatingIPResponseRaw = `` /* 533-byte string literal not displayed */
TestCreateFloatingIPResponseRaw represents a raw response from the Create request.
const TestGetFloatingIPResponseRaw = `` /* 584-byte string literal not displayed */
TestGetFloatingIPResponseRaw represents a raw response from the Get request.
const TestListFloatingIPsResponseRaw = `` /* 788-byte string literal not displayed */
TestListFloatingIPsResponseRaw represents a raw response from the List request.
const TestListFloatingIPsSingleResponseRaw = `` /* 284-byte string literal not displayed */
TestListFloatingIPsSingleResponseRaw represents a raw response with a single floating ip from the List request.
const TestManyFloatingIPsInvalidResponseRaw = `
{
"floatingips": [
{
"id": 123
}
]
}
`
TestManyFloatingIPsInvalidResponseRaw represents a raw invalid response with several floating ips.
const TestSingleFloatingIPInvalidResponseRaw = `
{
"floatingip": {
"id": 123
}
}
`
TestSingleFloatingIPInvalidResponseRaw represents a raw invalid response with a single floating ip.
Variables ¶
var TestCreateFloatingIPOpts = floatingips.FloatingIPOpts{ FloatingIPs: []floatingips.FloatingIPOpt{ { Region: "ru-2", Quantity: 1, }, { Region: "ru-1", Quantity: 2, }, }, }
TestCreateFloatingIPOpts represent options for the Create request.
var TestCreateFloatingIPResponse = []*floatingips.FloatingIP{
{
FloatingIPAddress: "203.0.113.11",
ID: "5232d5f3-4950-454b-bd41-78c5295622cd",
ProjectID: "49338ac045f448e294b25d013f890317",
Region: "ru-2",
Status: "DOWN",
},
{
FloatingIPAddress: "203.0.113.12",
ID: "94425a6e-19cd-412d-9710-ff40b34a78f4",
ProjectID: "9c97bdc75295493096cf5edcb8c37933",
Region: "ru-1",
Status: "DOWN",
},
}
TestCreateFloatingIPResponse represents the unmarshalled TestCreateFloatingIPResponseRaw response.
var TestGetFloatingIPResponse = &floatingips.FloatingIP{ FloatingIPAddress: "203.0.113.11", ID: "5232d5f3-4950-454b-bd41-78c5295622cd", ProjectID: "49338ac045f448e294b25d013f890317", PortID: "f7376dd2-c70f-4465-a5a8-e1a89b665d30", FixedIPAddress: "10.0.0.4", Region: "ru-3", Status: "ACTIVE", Servers: []servers.Server{ { ID: "253b680c-89f6-4c85-afbf-c9a67c92d3fe", Name: "Node00", Status: "ACTIVE", Updated: floatingIPServerTimeStamp, }, }, }
TestGetFloatingIPResponse represents an unmarshalled TestGetFloatingIPResponseRaw.
var TestListFloatingIPsSingleResponse = []*floatingips.FloatingIP{
{
FloatingIPAddress: "203.0.113.11",
ID: "5232d5f3-4950-454b-bd41-78c5295622cd",
ProjectID: "49338ac045f448e294b25d013f890317",
Region: "ru-2",
Status: "ACTIVE",
},
}
TestListFloatingIPsSingleResponse represents the unmarshalled TestListFloatingIPsSingleResponseRaw response.
Functions ¶
This section is empty.
Types ¶
This section is empty.