mirror of
https://github.com/ceph/go-ceph
synced 2024-12-25 23:52:27 +00:00
20b3c151b3
Now that we have shared support working with "command json" we attempt a minimal conversion, using aliases where appropriate, to the new commands.Response type. Signed-off-by: John Mulligan <jmulligan@redhat.com>
25 lines
620 B
Go
25 lines
620 B
Go
// +build !luminous,!mimic
|
|
|
|
package admin
|
|
|
|
import (
|
|
"github.com/ceph/go-ceph/internal/commands"
|
|
)
|
|
|
|
var (
|
|
// ErrStatusNotEmpty is an alias for commands.ErrStatusNotEmpty
|
|
ErrStatusNotEmpty = commands.ErrStatusNotEmpty
|
|
// ErrBodyNotEmpty is an alias for commands.ErrBodyNotEmpty
|
|
ErrBodyNotEmpty = commands.ErrBodyNotEmpty
|
|
)
|
|
|
|
type response = commands.Response
|
|
|
|
// NotImplementedError is an alias for commands.NotImplementedError.
|
|
type NotImplementedError = commands.NotImplementedError
|
|
|
|
// newResponse returns a response.
|
|
func newResponse(b []byte, s string, e error) response {
|
|
return commands.NewResponse(b, s, e)
|
|
}
|