mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-06 15:46:00 +01:00
REST API to create Geo-replication session create
PUT /v1/geo-replication/:mastervolid/:slavevolid
Request body,
{
"mastervol": MASTER_VOL_NAME,
"slavevol": SLAVE_VOL_NAME,
"slavehosts": LIST_OF_SLAVE_HOSTS,
"slaveuser": SLAVE_USER
}
REST API to update Geo-replication session update
POST /v1/geo-replication/:mastervolid/:slavevolid
Request body,
{
"mastervol": MASTER_VOL_NAME,
"slavevol": SLAVE_VOL_NAME,
"slavehosts": LIST_OF_SLAVE_HOSTS,
"slaveuser": SLAVE_USER
}
Updates: #271
Signed-off-by: Aravinda VK <avishwan@redhat.com>
10 lines
254 B
Go
10 lines
254 B
Go
package georeplication
|
|
|
|
// ErrGeorepSessionNotFound custom error to represent georep session not exists
|
|
// in store
|
|
type ErrGeorepSessionNotFound struct{}
|
|
|
|
func (e *ErrGeorepSessionNotFound) Error() string {
|
|
return "geo-replication session not found"
|
|
}
|