Documentation ¶
Index ¶
- type Client
- type ExportACL
- type ExportOptions
- type Server
- func (s *Server) AddShare(path string, secutityModes []string, ...) error
- func (s *Server) GetHost() string
- func (s *Server) Install() error
- func (s *Server) MountBlockDevice(deviceName, mountPoint, format string, doNotFormat bool) (string, error)
- func (s *Server) RemoveShare(path string) error
- func (s *Server) UnmountBlockDevice(volumeUUID string) 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 structure
func (*Server) AddShare ¶
func (s *Server) AddShare(path string, secutityModes []string, readOnly, rootSquash, secure, async, noHide, crossMount, subtreeCheck bool) error
AddShare configures a local path to be exported by NFS
func (*Server) MountBlockDevice ¶
func (s *Server) MountBlockDevice(deviceName, mountPoint, format string, doNotFormat bool) (string, 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
func (*Server) UnmountBlockDevice ¶
UnmountBlockDevice unmounts a local block device on the remote system
Click to show internal directories.
Click to hide internal directories.