mod

package
v0.205.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyslModulesOff = "off"
	SyslModulesOn  = "on"
)

Variables

View Source
var ModMode = mod.ModeType(os.Getenv("SYSL_MODULES"))
View Source
var SyslModules = os.Getenv("SYSL_MODULES") != SyslModulesOff

Functions

func Config added in v0.204.0

func Config()

Types

type Fs

type Fs struct {
	afero.Fs
	// contains filtered or unexported fields
}

func NewFs

func NewFs(fs afero.Fs, root string) *Fs

func (*Fs) Name

func (fs *Fs) Name() string

func (*Fs) Open

func (fs *Fs) Open(name string) (afero.File, error)

func (*Fs) OpenFile

func (fs *Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

func (*Fs) OpenWithModule added in v0.180.0

func (fs *Fs) OpenWithModule(name string) (afero.File, *mod.Module, error)

Jump to

Keyboard shortcuts

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