Documentation ¶
Index ¶
Constants ¶
const TestCreateProjectOptsRaw = `
{
"project": {
"name": "Project2",
"skip_quotas_init": false
}
}
`
TestCreateProjectOptsRaw represents marshalled options for the Create request.
const TestCreateProjectResponseRaw = `` /* 173-byte string literal not displayed */
TestCreateProjectResponseRaw represents a raw response from the Create request.
const TestGetProjectResponseRaw = `` /* 288-byte string literal not displayed */
TestGetProjectResponseRaw represents a raw response from the Get request.
const TestGetProjectResponseSingleQuotaRaw = `` /* 288-byte string literal not displayed */
TestGetProjectResponseSingleQuotaRaw represents a raw response with a single quota from the Get request.
const TestListProjectsResponseRaw = `` /* 456-byte string literal not displayed */
TestListProjectsResponseRaw represents a raw response from the List request.
const TestListProjectsResponseSingleRaw = `` /* 242-byte string literal not displayed */
TestListProjectsResponseSingleRaw represents a raw response with a single project from the List request.
const TestManyProjectsInvalidResponseRaw = `
{
"projects": [
{
"id": 12
}
]
}
`
TestManyProjectsInvalidResponseRaw represents a raw invalid response with many projects.
const TestSingleProjectInvalidResponseRaw = `
{
"project": {
"id": 12
}
}
`
TestSingleProjectInvalidResponseRaw represents a raw invalid response with a single project.
const TestUpdateProjectOptsRaw = `
{
"project": {
"name": "Project3",
"theme": {
"color": "#581845"
}
}
}
`
TestUpdateProjectOptsRaw represents marshalled options for the Update request.
const TestUpdateProjectResponseRaw = `` /* 284-byte string literal not displayed */
TestUpdateProjectResponseRaw represents a raw response from the Update request.
Variables ¶
var TestCreateProjectOpts = projects.CreateOpts{
Name: "Project2",
}
TestCreateProjectOpts represent options for the Create request.
var TestCreateProjectResponse = &projects.Project{ ID: "9c97bdc75295493096cf5edcb8c37933", Name: "Project2", URL: "https://yyyyyy.selvpc.ru", Enabled: true, }
TestCreateProjectResponse represents the unmarshalled TestCreateProjectResponseRaw response.
var TestGetProjectSingleQuotaResponse = &projects.Project{ ID: "49338ac045f448e294b25d013f890317", Name: "Project1", URL: "https://xxxxxx.selvpc.ru", Enabled: true, CustomURL: "", Theme: projects.Theme{ Color: "#581845", Logo: "", }, }
TestGetProjectSingleQuotaResponse represents the unmarshalled TestGetProjectResponseSingleQuotaRaw response.
var TestListProjectsSingleResponse = []*projects.Project{ { ID: "49338ac045f448e294b25d013f890317", Name: "Project1", URL: "https://xxxxxx.selvpc.ru", Enabled: true, CustomURL: "", }, }
TestListProjectsSingleResponse represents the unmarshalled TestListProjectsResponseSingleRaw response.
var TestUpdateProjectOpts = projects.UpdateOpts{ Name: "Project3", Theme: &projects.ThemeUpdateOpts{ Color: &color, }, }
TestUpdateProjectOpts represent options for the Update request.
var TestUpdateProjectResponse = &projects.Project{ ID: "f9ede488e5f14bac8962d8c53d0af9f4", Name: "Project3", URL: "https://zzzzzz.selvpc.ru", Enabled: true, CustomURL: "", Theme: projects.Theme{ Color: "#581845", Logo: "", }, }
TestUpdateProjectResponse represents the unmarshalled TestUpdateProjectResponseRaw response.
Functions ¶
This section is empty.
Types ¶
This section is empty.