param

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 12 Imported by: 0

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 LoadCertificates added in v1.13.6

func LoadCertificates(certFiles, keyFiles []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

	DefaultSort   string
	DirIndexes    []string
	Aliases       map[string]string
	Binds         map[string]string
	GlobalHeaders [][2]string

	GlobalUpload bool
	UploadUrls   []string
	UploadDirs   []string

	GlobalMkdir bool
	MkdirUrls   []string
	MkdirDirs   []string

	GlobalDelete bool
	DeleteUrls   []string
	DeleteDirs   []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
	UserMatchCase bool

	Certificates []tls.Certificate
	Listens      []string
	ListensPlain []string
	ListensTLS   []string
	HostNames    []string
	Theme        string
	ThemeDir     string

	GlobalHsts  bool
	GlobalHttps bool
	HttpsPort   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