Documentation
¶
Index ¶
- type Client
- type ExportACL
- type ExportOptions
- type Server
- func (s *Server) AddShare(ctx context.Context, path string, options string) fail.Error
- func (s *Server) Install(ctx context.Context) fail.Error
- func (s *Server) MountBlockDevice(ctx context.Context, deviceName, mountPoint, format string, doNotFormat bool) (string, fail.Error)
- func (s *Server) RemoveShare(ctx context.Context, path string) fail.Error
- func (s *Server) UnmountBlockDevice(ctx context.Context, volumeUUID string) fail.Error
- type Share
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// SshConfig contains ssh connection configuration
SSHConfig *system.SSHConfig
}
Client defines the structure of a Client object
func NewNFSClient ¶
NewNFSClient creates a new NFS client instance
type ExportACL ¶
type ExportACL struct {
// Host contains the pattern of hosts authorized (cf. exports man page)
Host string
// SecurityMode contains all the security mode allowed for the Host
SecurityModes []securityflavor.Enum
// Options contains the options of the export ACL
Options ExportOptions
}
ExportACL ...
type ExportOptions ¶
type ExportOptions struct {
ReadOnly bool
NoRootSquash bool
Secure bool
Async bool
NoHide bool
CrossMount bool
NoSubtreeCheck bool
SetFSID bool
AnonUID int
AnonGID int
}
ExportOptions ...
type Server ¶
Server getServer structure
func (*Server) MountBlockDevice ¶
func (s *Server) MountBlockDevice( ctx context.Context, deviceName, mountPoint, format string, doNotFormat bool, ) (string, fail.Error)
MountBlockDevice mounts a block device in the remote system
func (*Server) RemoveShare ¶
RemoveShare stops export of a local mount point by NFS on the remote server
Click to show internal directories.
Click to hide internal directories.