mirror of
https://github.com/ceph/go-ceph
synced 2024-12-20 13:21:32 +00:00
73bbdbfe08
Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 lines
456 B
Go
18 lines
456 B
Go
package manager
|
|
|
|
import (
|
|
ccom "github.com/ceph/go-ceph/common/commands"
|
|
)
|
|
|
|
// MgrAdmin is used to administrate ceph's manager (mgr).
|
|
type MgrAdmin struct {
|
|
conn ccom.RadosCommander
|
|
}
|
|
|
|
// NewFromConn creates an new management object from a preexisting
|
|
// rados connection. The existing connection can be rados.Conn or any
|
|
// type implementing the RadosCommander interface.
|
|
func NewFromConn(conn ccom.RadosCommander) *MgrAdmin {
|
|
return &MgrAdmin{conn}
|
|
}
|