share

package
v0.18.3-0...-c90ca1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXPORTSFILE = "/etc/exports"

EXPORTSFILE ...

Functions

func Add

func Add(path string) error

Add will export an nfs share

func Exists

func Exists(path string) bool

Exists checks to see if the mount already exists

func Remove

func Remove(path string) error

Remove will remove an nfs share

Types

type Request

type Request struct {
	Entry string
}

type Response

type Response struct {
	Message string
	Success bool
}

type ShareRPC

type ShareRPC struct{}

func (*ShareRPC) Add

func (sh *ShareRPC) Add(req Request, resp *Response) error

the rpc function run from the server

func (*ShareRPC) Remove

func (sh *ShareRPC) Remove(req Request, resp *Response) error

the rpc function run from the server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL