2022-10-17 16:50:20 +00:00
|
|
|
//go:build !(nautilus || octopus)
|
|
|
|
// +build !nautilus,!octopus
|
2022-02-21 16:49:35 +00:00
|
|
|
|
|
|
|
package nfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
ccom "github.com/ceph/go-ceph/common/commands"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Admin is used to administer ceph nfs features.
|
|
|
|
type Admin 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) *Admin {
|
|
|
|
return &Admin{conn}
|
|
|
|
}
|