go-ceph/cephfs/admin/response.go

25 lines
620 B
Go
Raw Normal View History

// +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)
}