param

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntriesToUsers added in v1.4.0

func EntriesToUsers(entries []string) []*user

func LoadCertificate added in v1.4.0

func LoadCertificate(certFile, keyFile string) (*tls.Certificate, error)

func WildcardToRegexp added in v1.4.0

func WildcardToRegexp(wildcards []string, found bool) (*regexp.Regexp, error)

Types

type Param

type Param struct {
	Root      string
	EmptyRoot bool

	Aliases map[string]string

	GlobalUpload bool
	UploadUrls   []string
	UploadDirs   []string

	GlobalArchive bool
	ArchiveUrls   []string
	ArchiveDirs   []string

	GlobalCors bool
	CorsUrls   []string
	CorsDirs   []string

	GlobalAuth  bool
	AuthUrls    []string
	AuthDirs    []string
	UsersPlain  []*user
	UsersBase64 []*user
	UsersMd5    []*user
	UsersSha1   []*user
	UsersSha256 []*user
	UsersSha512 []*user

	Certificate  *tls.Certificate
	Listens      []string
	ListensPlain []string
	ListensTLS   []string
	HostNames    []string
	Template     string

	Shows     *regexp.Regexp
	ShowDirs  *regexp.Regexp
	ShowFiles *regexp.Regexp
	Hides     *regexp.Regexp
	HideDirs  *regexp.Regexp
	HideFiles *regexp.Regexp

	AccessLog string
	ErrorLog  string
}

func ParseCli

func ParseCli() []*Param

func (*Param) GetDupUserNames added in v1.4.0

func (param *Param) GetDupUserNames() []string

Jump to

Keyboard shortcuts

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