config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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