config

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadForResources added in v1.0.48

func LoadForResources(filesys fs.FS, resources []Resource, protos task.Plugins) (task.Plugins, error)

LoadForResources returns plugins for a list of resources

Types

type Resource added in v1.0.48

type Resource struct {
	task.Plugin
	Path string `json:"-"`
}

Resource is a plugin resource definition with name and label

func LoadForPattern added in v1.0.48

func LoadForPattern(filesys fs.FS, pattern string) ([]Resource, error)

LoadForPattern returns resources for a pattern of files on a filesystem, in no particular order. Currently only JSON files are supported, with a .json extension or else an error is returned

Directories

Path Synopsis
The `json` package provides a decoder for JSON configuration files.
The `json` package provides a decoder for JSON configuration files.

Jump to

Keyboard shortcuts

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