-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfs admin: add the admin type for nfs
Signed-off-by: John Mulligan <jmulligan@redhat.com>
- Loading branch information
1 parent
737dee7
commit 02da443
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//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} | ||
} |