filesource

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileDataSources

func NewFileDataSources(path string) (datasource.CollectSource, error)

NewFileDataSources creates a datasource which gets its data sources from a configuration file. This configuration file is in YAML and follows the structure outlined in the FileFormat struct. An example is as follows:

sources.yaml ---- oci: - abc - def git: - git+https://github.com/...

Types

type FileFormat

type FileFormat struct {
	OciDataSources []string `yaml:"oci"`
	GitDataSources []string `yaml:"git"`
}

Jump to

Keyboard shortcuts

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