fs

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ModuleOrderIdx = 2
	ModuleNameIdx  = 3
)

Variables

View Source
var ValidModuleNameRe = regexp.MustCompile(`^(([0-9]+)-)?(.+)$`)

ValidModuleNameRe defines a valid module name. It may have a number prefix: it is an order of the module.

Functions

This section is empty.

Types

type FileSystemLoader

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

func NewFileSystemLoader

func NewFileSystemLoader(moduleDirs string, vv *validation.ValuesValidator) *FileSystemLoader

func (*FileSystemLoader) LoadModules

func (fl *FileSystemLoader) LoadModules() ([]*modules.BasicModule, error)

func (*FileSystemLoader) ReloadModule added in v1.3.7

func (fl *FileSystemLoader) ReloadModule(_, modulePath string) (*modules.BasicModule, error)

read single directory and return BasicModule for loading

Jump to

Keyboard shortcuts

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