Documentation ¶
Overview ¶
volume_types
Index ¶
- Constants
- Variables
- func HandleExtraSpecDeleteSuccessfully(t *testing.T)
- func HandleExtraSpecGetSuccessfully(t *testing.T)
- func HandleExtraSpecUpdateSuccessfully(t *testing.T)
- func HandleExtraSpecsCreateSuccessfully(t *testing.T)
- func HandleExtraSpecsListSuccessfully(t *testing.T)
- func MockCreateResponse(t *testing.T)
- func MockDeleteResponse(t *testing.T)
- func MockGetResponse(t *testing.T)
- func MockListResponse(t *testing.T)
- func MockUpdateResponse(t *testing.T)
Constants ¶
View Source
const ExtraSpecsGetBody = `
{
"extra_specs" : {
"capabilities": "gpu",
"volume_backend_name": "ssd"
}
}
`
ExtraSpecsGetBody provides a GET result of the extra_specs for a volume type
View Source
const GetExtraSpecBody = `
{
"capabilities": "gpu"
}
`
GetExtraSpecBody provides a GET result of a particular extra_spec for a volume type
View Source
const UpdatedExtraSpecBody = `
{
"capabilities": "gpu-2"
}
`
UpdatedExtraSpecBody provides an PUT result of a particular updated extra_spec for a volume type
Variables ¶
View Source
var ExtraSpec = map[string]string{
"capabilities": "gpu",
}
ExtraSpec is the expected extra_spec returned from GET on a volume type's extra_specs
View Source
var ExtraSpecs = map[string]string{
"capabilities": "gpu",
"volume_backend_name": "ssd",
}
ExtraSpecs is the expected extra_specs returned from GET on a volume type's extra_specs
View Source
var UpdatedExtraSpec = map[string]string{
"capabilities": "gpu-2",
}
UpdatedExtraSpec is the expected extra_spec returned from PUT on a volume type's extra_specs
Functions ¶
func HandleExtraSpecDeleteSuccessfully ¶ added in v0.17.0
func HandleExtraSpecGetSuccessfully ¶ added in v0.17.0
func HandleExtraSpecUpdateSuccessfully ¶ added in v0.17.0
func HandleExtraSpecsCreateSuccessfully ¶ added in v0.17.0
func HandleExtraSpecsListSuccessfully ¶ added in v0.17.0
func MockCreateResponse ¶
func MockDeleteResponse ¶
func MockGetResponse ¶
func MockListResponse ¶
func MockUpdateResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.