2020-09-21 18:53:29 +00:00
|
|
|
// +build !luminous,!mimic
|
|
|
|
|
|
|
|
package admin
|
|
|
|
|
|
|
|
import (
|
2021-03-03 19:45:21 +00:00
|
|
|
"github.com/ceph/go-ceph/internal/commands"
|
2020-09-21 18:53:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2021-03-03 19:45:21 +00:00
|
|
|
// ErrStatusNotEmpty is an alias for commands.ErrStatusNotEmpty
|
|
|
|
ErrStatusNotEmpty = commands.ErrStatusNotEmpty
|
|
|
|
// ErrBodyNotEmpty is an alias for commands.ErrBodyNotEmpty
|
|
|
|
ErrBodyNotEmpty = commands.ErrBodyNotEmpty
|
2020-09-21 18:53:29 +00:00
|
|
|
)
|
|
|
|
|
2021-03-03 19:45:21 +00:00
|
|
|
type response = commands.Response
|
2020-09-21 18:53:29 +00:00
|
|
|
|
2021-03-03 19:45:21 +00:00
|
|
|
// NotImplementedError is an alias for commands.NotImplementedError.
|
|
|
|
type NotImplementedError = commands.NotImplementedError
|
2020-09-21 18:53:29 +00:00
|
|
|
|
|
|
|
// newResponse returns a response.
|
|
|
|
func newResponse(b []byte, s string, e error) response {
|
2021-03-03 19:45:21 +00:00
|
|
|
return commands.NewResponse(b, s, e)
|
2020-09-21 18:53:29 +00:00
|
|
|
}
|