From 02da4437ab1e474d93c0d57e7fcac8d33db73daa Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 21 Feb 2022 11:49:35 -0500 Subject: [PATCH] nfs admin: add the admin type for nfs Signed-off-by: John Mulligan --- common/admin/nfs/admin.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 common/admin/nfs/admin.go diff --git a/common/admin/nfs/admin.go b/common/admin/nfs/admin.go new file mode 100644 index 0000000..2f644d0 --- /dev/null +++ b/common/admin/nfs/admin.go @@ -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} +}