table

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedDirs

type AllowedDirs map[string]bool

func LoadTable

func LoadTable(r io.Reader) AllowedDirs

type Table

type Table struct {
	// contains filtered or unexported fields
}

func New

func New(dir string) *Table

func (*Table) Allow

func (t *Table) Allow(dir string)

func (*Table) Deny

func (t *Table) Deny(dir string)

func (*Table) Dispose

func (t *Table) Dispose() (err error)

func (*Table) EmptyRulesFile

func (t *Table) EmptyRulesFile() error

func (*Table) GetAllowedDirs

func (t *Table) GetAllowedDirs() map[string]bool

func (*Table) IsDeny

func (t *Table) IsDeny(dir string) (deny bool)

func (*Table) LoadTable

func (t *Table) LoadTable() (err error)

func (*Table) Open

func (t *Table) Open() (err error)

func (*Table) Watch

func (t *Table) Watch()

Jump to

Keyboard shortcuts

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