Documentation
¶
Index ¶
- Constants
- Variables
- func Resolve(base, rel string) (string, error)
- type Jail
- func (j Jail) Create(full string) (*os.File, error)
- func (j Jail) MkdirAll(full string, perm fs.FileMode) error
- func (j Jail) Open(full string) (*os.File, error)
- func (j Jail) OpenFile(full string, flag int, perm fs.FileMode) (*os.File, error)
- func (j Jail) ReadFile(full string) ([]byte, error)
- func (j Jail) Remove(full string) error
- func (j Jail) RemoveAll(full string) error
- func (j Jail) Rename(from, to string) error
- func (j Jail) WriteFile(full string, data []byte, perm fs.FileMode) error
- type Paths
- func (p *Paths) Archive() string
- func (p *Paths) Backups() string
- func (p *Paths) Certs() string
- func (p *Paths) Config() string
- func (p *Paths) EnsureBase() error
- func (p *Paths) Files() string
- func (p *Paths) Locales() string
- func (p *Paths) Logs() string
- func (p *Paths) PGData() string
- func (p *Paths) Plugins() string
- func (p *Paths) Postgres() string
- func (p *Paths) Root() string
- func (p *Paths) Secrets() string
- func (p *Paths) Source() Source
- func (p *Paths) Updates() string
- type Source
Constants ¶
View Source
const ( EnvDataDir = "PWIKIT_DATA_DIR" DataDirFile = "pwikit.data-dir" )
Variables ¶
View Source
var ErrEscapes = errors.New("path escapes its base directory")
Functions ¶
Types ¶
type Paths ¶
type Paths struct {
// contains filtered or unexported fields
}
func (*Paths) EnsureBase ¶
Click to show internal directories.
Click to hide internal directories.