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 ¶ added in v0.2.1
type BackupDeleteRequest ¶ added in v0.2.1
type BackupListRequest ¶ added in v0.2.1
type BackupURLResponse ¶ added in v0.2.1
type BackupURLResponse struct {
URL string
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string
}
type SnapshotCreateRequest ¶ added in v0.2.1
type SnapshotDeleteRequest ¶ added in v0.2.1
type SnapshotDeleteRequest struct {
SnapshotName string
}
type SnapshotInspectRequest ¶ added in v0.2.1
type SnapshotInspectRequest struct {
SnapshotName string
}
type SnapshotResponse ¶
type VolumeCreateRequest ¶ added in v0.2.1
type VolumeDeleteRequest ¶ added in v0.2.1
type VolumeInspectRequest ¶ added in v0.2.1
type VolumeInspectRequest struct {
VolumeName string
}
type VolumeMountRequest ¶ added in v0.2.1
type VolumeResponse ¶
type VolumeUmountRequest ¶ added in v0.2.1
type VolumeUmountRequest struct {
VolumeName string
}
Click to show internal directories.
Click to hide internal directories.