Documentation ¶
Index ¶
Constants ¶
const TestCreateRoleResponseRaw = `` /* 136-byte string literal not displayed */
TestCreateRoleResponseRaw represents a raw response from the Create request.
const TestCreateRolesOptsRaw = `` /* 305-byte string literal not displayed */
TestCreateRolesOptsRaw represent raw options for the Create request.
const TestCreateRolesResponseRaw = `` /* 305-byte string literal not displayed */
TestCreateRolesResponseRaw represents a raw response from the Create request.
const TestListProjectResponseRaw = `` /* 447-byte string literal not displayed */
TestListProjectResponseRaw represents a raw response from ListProject requests.
const TestListResponseRaw = `` /* 446-byte string literal not displayed */
TestListResponseRaw represents a raw response from List requests.
const TestListResponseSingleRaw = `` /* 165-byte string literal not displayed */
TestListResponseSingleRaw represents a raw response with a single role from List requests.
const TestListUserResponseRaw = `` /* 445-byte string literal not displayed */
TestListUserResponseRaw represents a raw response from ListUser requests.
const TestManyRolesInvalidResponseRaw = `
{
"roles": [
{
"project_id": 123
}
]
}
`
TestManyRolesInvalidResponseRaw represents a raw invalid response with several roles.
const TestSingleRoleInvalidResponseRaw = `
{
"role": {
"project_id": 123
}
}
`
TestSingleRoleInvalidResponseRaw represents a raw invalid response with a single role.
Variables ¶
var TestCreateRoleResponse = &roles.Role{
ProjectID: "49338ac045f448e294b25d013f890317",
UserID: "763eecfaeb0c8e9b76ab12a82eb4c11",
}
TestCreateRoleResponse represents the unmarshalled TestCreateRoleResponseRaw response.
var TestCreateRolesOpts = roles.RoleOpts{ Roles: []roles.RoleOpt{ { ProjectID: "81800a8ec3fc49fca2cf00857de3ae9d", UserID: "763eecfaeb0c8e9b76ab12a82eb4c11", }, { ProjectID: "d7452adc9769422a908edfd2281d7c55", UserID: "763eecfaeb0c8e9b76ab12a82eb4c11", }, }, }
TestCreateRolesOpts represent options for the Create request.
var TestListResponseSingle = []*roles.Role{
{
ProjectID: "49338ac045f448e294b25d013f890317",
UserID: "763eecfaeb0c8e9b76ab12a82eb4c11",
},
}
TestListResponseSingle represents the unmarshalled TestListResponseSingleRaw response.
var TestRoleOpt = roles.RoleOpt{
ProjectID: "49338ac045f448e294b25d013f890317",
UserID: "763eecfaeb0c8e9b76ab12a82eb4c11",
}
TestRoleOpt represent options for the Create and Delete requests.
Functions ¶
This section is empty.
Types ¶
This section is empty.