mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
This PR includes functional changes, client api changes, Test cases. Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
21 lines
572 B
Go
21 lines
572 B
Go
package api
|
|
|
|
// SnapCreateReq represents a Snapshot Create Request
|
|
type SnapCreateReq struct {
|
|
VolName string `json:"volname"`
|
|
SnapName string `json:"snapname"`
|
|
TimeStamp bool `json:"timestamp,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
Force bool `json:"force,omitempty"`
|
|
}
|
|
|
|
//SnapActivateReq represents a request to activate a snapshot
|
|
type SnapActivateReq struct {
|
|
Force bool `json:"force,omitempty"`
|
|
}
|
|
|
|
//SnapCloneReq represents a request to clone a snapshot
|
|
type SnapCloneReq struct {
|
|
CloneName string `json:"clonename"`
|
|
}
|