exports

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathToExports = "/etc/exports"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Path      string
	Addr      string
	Uid       string
	Gid       string
	OptAllDir string
	ReadOnly  bool
	Comment   string
}

func Parse

func Parse(line string) (*Configuration, error)

func (*Configuration) String

func (c *Configuration) String() string

type Exports

type Exports []*Configuration

func (*Exports) AddrExists

func (e *Exports) AddrExists(addr string) bool

func (*Exports) AlreadyExists

func (e *Exports) AlreadyExists(c *Configuration) bool

func (*Exports) GidExists

func (e *Exports) GidExists(gid string) bool

func (*Exports) PathExists

func (e *Exports) PathExists(path string) bool

func (*Exports) String

func (e *Exports) String() string

func (*Exports) UidExists

func (e *Exports) UidExists(uid string) bool

Jump to

Keyboard shortcuts

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