Validate if replication config being added is self referential (#17142)

This commit is contained in:
Poorna
2023-05-06 13:35:43 -07:00
committed by GitHub
parent be18d435a2
commit c5c1426262
4 changed files with 63 additions and 2 deletions

View File

@@ -437,6 +437,16 @@ func (e RemoteTargetConnectionErr) Error() string {
return fmt.Sprintf("Remote service endpoint %s not available\n\t%s", e.Endpoint, e.Err.Error())
}
// BucketRemoteIdenticalToSource remote already exists for this target type.
type BucketRemoteIdenticalToSource struct {
GenericError
Endpoint string
}
func (e BucketRemoteIdenticalToSource) Error() string {
return fmt.Sprintf("Remote service endpoint %s is self referential to current cluster", e.Endpoint)
}
// BucketRemoteAlreadyExists remote already exists for this target type.
type BucketRemoteAlreadyExists GenericError