mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 13:49:53 +00:00
22 lines
577 B
Go
22 lines
577 B
Go
|
//go:build !(nautilus || octopus) && ceph_preview && ceph_ci_untested
|
||
|
// +build !nautilus,!octopus,ceph_preview,ceph_ci_untested
|
||
|
|
||
|
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.
|
||
|
// PREVIEW
|
||
|
func NewFromConn(conn ccom.RadosCommander) *Admin {
|
||
|
return &Admin{conn}
|
||
|
}
|