Documentation ¶
Index ¶
- Constants
- func InvokeRESTAPI(method string, url string, requestBody []byte, debug bool) (*http.Response, []byte, error)
- func LogHTTPRequest(request *http.Request, requestBody []byte)
- func LogHTTPResponse(response *http.Response, responseBody []byte)
- type ClientVersionResponse
- type ErrorResponse
- type GetBackendResponse
- type GetStorageClassResponse
- type KubernetesNamespace
- type Metadata
- type MultipleBackendResponse
- type MultipleNodeResponse
- type MultipleSnapshotResponse
- type MultipleStorageClassResponse
- type MultipleVolumeResponse
- type StorageClass
- type Version
- type VersionResponse
Constants ¶
View Source
const HTTPTimeout = time.Second * 300
Variables ¶
This section is empty.
Functions ¶
func InvokeRESTAPI ¶
func LogHTTPRequest ¶
func LogHTTPResponse ¶
Types ¶
type ClientVersionResponse ¶
type ClientVersionResponse struct {
Client Version `json:"client"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type GetBackendResponse ¶
type GetBackendResponse struct { Backend storage.BackendExternal `json:"backend"` Error string `json:"error"` }
type GetStorageClassResponse ¶
type GetStorageClassResponse struct { StorageClass `json:"storageClass"` Error string `json:"error"` }
type KubernetesNamespace ¶
type MultipleBackendResponse ¶
type MultipleBackendResponse struct {
Items []storage.BackendExternal `json:"items"`
}
type MultipleNodeResponse ¶
type MultipleSnapshotResponse ¶
type MultipleSnapshotResponse struct {
Items []storage.SnapshotExternal `json:"items"`
}
type MultipleStorageClassResponse ¶
type MultipleStorageClassResponse struct {
Items []StorageClass `json:"items"`
}
type MultipleVolumeResponse ¶
type MultipleVolumeResponse struct {
Items []storage.VolumeExternal `json:"items"`
}
type StorageClass ¶
type StorageClass struct { Config struct { Version string `json:"version"` Name string `json:"name"` Attributes interface{} `json:"attributes"` Pools map[string][]string `json:"storagePools"` AdditionalPools map[string][]string `json:"additionalStoragePools"` } `json:"Config"` Storage interface{} `json:"storage"` }
type VersionResponse ¶
Click to show internal directories.
Click to hide internal directories.