configuration

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(sources []Source, repositoryGetter RepositoryGetter) ([]registry.PatchList, []v1.IndicatorDocument)

func Validate

func Validate(f SourcesFile) error

Types

type RepositoryGetter

type RepositoryGetter func(Source) (*git.Repository, error)

type Source

type Source struct {
	Type       string `yaml:"type"`
	Path       string `yaml:"path"`
	Repository string `yaml:"repository"`
	Token      string `yaml:"token"`
	Key        string `yaml:"private_key"`
	Glob       string `yaml:"glob"`
}

func ParseSourcesFile

func ParseSourcesFile(filePath string) ([]Source, error)

type SourcesFile

type SourcesFile struct {
	Sources []Source `yaml:"sources"`
}

Jump to

Keyboard shortcuts

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