config

package
v0.0.0-...-dbe0621 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTPGroup

type FTPGroup interface {
	CanCreateFile(path string) bool
	CanCreateDir(path string) bool
	CanEditFile(path string) bool
	CanListDir(path string) bool
	CanDeleteFile(path string) bool
	CanDeleteDir(path string) bool
}

type FTPUser

type FTPUser interface {
	HomeDir() string
	Auth(password string) bool
	Group() FTPGroup
}

type FTPUserConfig

type FTPUserConfig interface {
	FindUser(name string) FTPUser
	FindGroup(name string) FTPGroup
}

func NewDefaultConfig

func NewDefaultConfig(basedir string) FTPUserConfig

func NewYAMLConfig

func NewYAMLConfig(file string, rewrite bool) (FTPUserConfig, error)

Jump to

Keyboard shortcuts

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