Documentation
¶
Index ¶
- type Client
- type ExportAcl
- type ExportOptions
- type Server
- func (s *Server) AddShare(path string, acl string) error
- func (s *Server) GetHost() string
- func (s *Server) Install() error
- func (s *Server) MountBlockDevice(device, mountPoint, format string) error
- func (s *Server) RemoveShare(path string) error
- func (s *Server) UnmountBlockDevice(device string) error
- type Share
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client defines the structure of a Client object
func NewNFSClient ¶
NewNFSClient creates a new NFS client isntance
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
}
type ExportOptions ¶
type Server ¶
Server structure
func (*Server) MountBlockDevice ¶
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.