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 Backend
- type ClientVersionResponse
- type ErrorResponse
- type GetBackendResponse
- type GetStorageClassResponse
- type KubernetesNamespace
- type Metadata
- type MultipleBackendResponse
- type MultipleStorageClassResponse
- type MultipleVolumeResponse
- type StorageClass
- type Version
- type VersionResponse
Constants ¶
View Source
const HTTPTimeout = time.Second * 90
Variables ¶
This section is empty.
Functions ¶
func InvokeRESTAPI ¶
func LogHTTPRequest ¶
func LogHTTPResponse ¶
Types ¶
type Backend ¶
type Backend struct {
Name string `json:"name"`
Config struct {
Version int `json:"version"`
StorageDriverName string `json:"storageDriverName"`
StoragePrefix string `json:"storagePrefix"`
SerialNumbers []string `json:"serialNumbers"`
} `json:"config"`
Storage interface{} `json:"storage"`
Online bool `json:"online"`
Volumes []string `json:"volumes"`
}
type ClientVersionResponse ¶
type ClientVersionResponse struct {
Client Version `json:"client"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type GetBackendResponse ¶
type GetStorageClassResponse ¶
type GetStorageClassResponse struct {
StorageClass `json:"storageClass"`
Error string `json:"error"`
}
type KubernetesNamespace ¶
type MultipleBackendResponse ¶
type MultipleBackendResponse struct {
Items []Backend `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.