Documentation ¶
Index ¶
- Constants
- func ResponseError(format string, a ...interface{})
- func ResponseLogAndError(v interface{})
- func ResponseOutput(v interface{}) ([]byte, error)
- type BackupCreateRequest
- type BackupDeleteRequest
- type BackupListRequest
- type BackupURLResponse
- type ErrorResponse
- type SnapshotCreateRequest
- type SnapshotDeleteRequest
- type SnapshotInspectRequest
- type SnapshotResponse
- type VolumeCreateRequest
- type VolumeDeleteRequest
- type VolumeInspectRequest
- type VolumeMountRequest
- type VolumeResponse
- type VolumeUmountRequest
Constants ¶
View Source
const ( // API_VERSION is the API version of Convoy daemon API_VERSION = "1" KEY_NAME = "name" KEY_BACKUP_URL = "backup" KEY_DEST_URL = "dest" )
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseError(format string, a ...interface{})
ResponseError would generate a error information in JSON format for output
func ResponseLogAndError ¶
func ResponseLogAndError(v interface{})
ResponseLogAndError would log the error before call ResponseError()
func ResponseOutput ¶
ResponseOutput would generate a JSON format byte array of object for output
Types ¶
type BackupCreateRequest ¶
type BackupDeleteRequest ¶
type BackupListRequest ¶
type BackupURLResponse ¶
type BackupURLResponse struct {
URL string
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string
}
type SnapshotCreateRequest ¶
type SnapshotDeleteRequest ¶
type SnapshotDeleteRequest struct {
SnapshotName string
}
type SnapshotInspectRequest ¶
type SnapshotInspectRequest struct {
SnapshotName string
}
type SnapshotResponse ¶
type VolumeCreateRequest ¶
type VolumeDeleteRequest ¶
type VolumeInspectRequest ¶
type VolumeInspectRequest struct {
VolumeName string
}
type VolumeMountRequest ¶
type VolumeResponse ¶
type VolumeUmountRequest ¶
type VolumeUmountRequest struct {
VolumeName string
}
Click to show internal directories.
Click to hide internal directories.