Documentation
¶
Index ¶
- Constants
- func InvokeRESTAPI(method, url string, requestBody []byte) (*http.Response, []byte, error)
- func LogHTTPRequest(request *http.Request, requestBody []byte)
- func LogHTTPResponse(response *http.Response, responseBody []byte)
- type CRStatus
- type ClientVersionResponse
- type ErrorResponse
- type GetBackendResponse
- type GetStorageClassResponse
- type KubernetesNamespace
- type Metadata
- type MultipleAutogrowPolicyResponse
- type MultipleBackendResponse
- type MultipleGroupSnapshotResponse
- type MultipleNodeResponse
- type MultipleSnapshotResponse
- type MultipleStorageClassResponse
- type MultipleVolumePublicationResponse
- type MultipleVolumeResponse
- type OperatorPhaseStatus
- type OperatorStatus
- type StorageClass
- type Version
- type VersionResponse
Constants ¶
View Source
const HTTPClientTimeout = 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 MultipleAutogrowPolicyResponse ¶
type MultipleAutogrowPolicyResponse struct {
Items []storage.AutogrowPolicyExternal `json:"items"`
}
type MultipleBackendResponse ¶
type MultipleBackendResponse struct {
Items []storage.BackendExternal `json:"items"`
}
type MultipleGroupSnapshotResponse ¶
type MultipleGroupSnapshotResponse struct {
Items []storage.GroupSnapshotExternal `json:"items"`
}
type MultipleNodeResponse ¶
type MultipleNodeResponse struct {
Items []models.NodeExternal `json:"items"`
}
type MultipleSnapshotResponse ¶
type MultipleSnapshotResponse struct {
Items []storage.SnapshotExternal `json:"items"`
}
type MultipleStorageClassResponse ¶
type MultipleStorageClassResponse struct {
Items []StorageClass `json:"items"`
}
type MultipleVolumePublicationResponse ¶
type MultipleVolumePublicationResponse struct {
Items []models.VolumePublicationExternal `json:"items"`
}
type MultipleVolumeResponse ¶
type MultipleVolumeResponse struct {
Items []storage.VolumeExternal `json:"items"`
}
type OperatorPhaseStatus ¶
type OperatorPhaseStatus string
const ( OperatorPhaseDone OperatorPhaseStatus = "Done" OperatorPhaseProcessing OperatorPhaseStatus = "Processing" OperatorPhaseUnknown OperatorPhaseStatus = "Unknown" OperatorPhaseFailed OperatorPhaseStatus = "Failed" OperatorPhaseError OperatorPhaseStatus = "Error" )
type OperatorStatus ¶
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 Version ¶
type Version struct {
Version string `json:"version"`
MajorVersion uint `json:"majorVersion"`
MinorVersion uint `json:"minorVersion"`
PatchVersion uint `json:"patchVersion"`
PreRelease string `json:"preRelease"`
BuildMetadata string `json:"buildMetadata"`
APIVersion string `json:"apiVersion"`
GoVersion string `json:"goVersion"`
}
type VersionResponse ¶
Click to show internal directories.
Click to hide internal directories.