rebase: update to go-ceph v1.18.0

this commit make use of latest go-ceph version
https://github.com/ceph/go-ceph/releases/tag/v0.18.0

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2022-11-11 15:17:04 +05:30
committed by mergify[bot]
parent ea806bfa73
commit d772fc098c
7 changed files with 23 additions and 15 deletions

View File

@ -1,5 +1,5 @@
//go:build !(nautilus || octopus) && ceph_preview
// +build !nautilus,!octopus,ceph_preview
//go:build !(nautilus || octopus)
// +build !nautilus,!octopus
package nfs

View File

@ -1,5 +1,5 @@
//go:build !(nautilus || octopus) && ceph_preview
// +build !nautilus,!octopus,ceph_preview
//go:build !(nautilus || octopus)
// +build !nautilus,!octopus
package nfs
@ -26,6 +26,18 @@ const (
Unspecifiedquash SquashMode = ""
)
// SecType indicates the kind of security/authentication to be used by an export.
type SecType string
// src: https://github.com/nfs-ganesha/nfs-ganesha/blob/next/src/config_samples/export.txt
const (
SysSec SecType = "sys"
NoneSec SecType = "none"
Krb5Sec SecType = "krb5"
Krb5iSec SecType = "krb5i"
Krb5pSec SecType = "krb5p"
)
// CephFSExportSpec is used to specify the parameters used to create a new
// CephFS based export.
type CephFSExportSpec struct {
@ -36,6 +48,7 @@ type CephFSExportSpec struct {
ReadOnly bool `json:"readonly"`
ClientAddr []string `json:"client_addr,omitempty"`
Squash SquashMode `json:"squash,omitempty"`
SecType []SecType `json:"sectype,omitempty"`
}
// ExportResult is returned along with newly created exports.
@ -81,6 +94,7 @@ type ExportInfo struct {
Transports []string `json:"transports"`
FSAL FSALInfo `json:"fsal"`
Clients []ClientInfo `json:"clients"`
SecType []SecType `json:"sectype"`
}
func parseExportResult(res commands.Response) (*ExportResult, error) {