Documentation ¶
Index ¶
Constants ¶
const TestCreateKeypairOptsRaw = `` /* 239-byte string literal not displayed */
TestCreateKeypairOptsRaw represents marshalled options for the Create request.
const TestCreateKeypairResponseRaw = `` /* 499-byte string literal not displayed */
TestCreateKeypairResponseRaw represents a raw response from the Create request.
const TestListResponseRaw = `` /* 807-byte string literal not displayed */
TestListResponseRaw represents a raw response from List requests.
const TestListResponseSingleRaw = `` /* 264-byte string literal not displayed */
TestListResponseSingleRaw represents a raw response with a single keypair from the List requests.
const TestManyKeypairsInvalidResponseRaw = `
{
"keypairs": [
{
"user_id": 123
}
]
}
`
TestManyKeypairsInvalidResponseRaw represents a raw invalid response from the List call.
const TestSingleKeypairInvalidResponseRaw = `
{
"keypair": [
{
"regions": "some_regions"
}
]
}
`
TestSingleKeypairInvalidResponseRaw represents a raw invalid response with a single keypair.
Variables ¶
var TestCreateKeypairOpts = keypairs.KeypairOpts{ Name: "key1", PublicKey: "ssh-rsa CCCAAABBB user33@example.com", Regions: []string{"ru-2", "ru-3"}, UserID: "6d7eb892ca98413e8621c6366c8416be", }
TestCreateKeypairOpts represent options for the Create request.
var TestCreateKeypairResponse = []*keypairs.Keypair{ { Name: "key1", PublicKey: "ssh-rsa CCCAAABBB user33@example.com", Regions: []string{"ru-2"}, UserID: "6d7eb892ca98413e8621c6366c8416be", }, { Name: "key1", PublicKey: "ssh-rsa CCCAAABBB user33@example.com", Regions: []string{"ru-3"}, UserID: "6d7eb892ca98413e8621c6366c8416be", }, }
TestCreateKeypairResponse represents the unmarshalled TestCreateKeypairResponseRaw response.
var TestListResponseSingle = []*keypairs.Keypair{ { Name: "key2", PublicKey: "ssh-rsa CCCAAABBB user2@selectel.com", Regions: []string{"ru-3"}, UserID: "6d7eb892ca98413e8621c6366c8416be", }, }
TestListResponseSingle represents the unmarshalled TestListResponseSingleRaw response.
Functions ¶
This section is empty.
Types ¶
This section is empty.