configuration

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 10 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, []indicator.Document, error)

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"`
	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