Documentation ¶
Overview ¶
Package filexl provides a xlistd.List implementation that uses a file as source for its checks.
This package is a work in progress and makes no API stability promises.
Index ¶
- Constants
- func Builder(defaultCfg Config) xlistd.BuildListFn
- type Config
- type List
- func (l *List) Check(ctx context.Context, name string, resource xlist.Resource) (xlist.Response, error)
- func (l *List) Class() string
- func (l *List) Close()
- func (l *List) ID() string
- func (l *List) Open() error
- func (l *List) Ping() error
- func (l *List) Reload() error
- func (l *List) Resources(ctx context.Context) ([]xlist.Resource, error)
Constants ¶
View Source
const ComponentClass = "file"
ComponentClass defines default class for component builder
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(defaultCfg Config) xlistd.BuildListFn
Builder returns a builder function.
Types ¶
type Config ¶
type Config struct { ForceValidation bool Reason string UnsafeReload bool Autoreload bool ReloadTime time.Duration }
Config options
type List ¶
type List struct {
// contains filtered or unexported fields
}
List loads list from a file using internally a memxl.List
Click to show internal directories.
Click to hide internal directories.