1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-06 15:46:00 +01:00
Files
glusterd2/plugins/georeplication/errors.go
Aravinda VK fe393ac5f3 plugins/geo-rep: Geo-replication Session Create
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>
2017-10-13 10:10:57 +05:30

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"
}