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 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 ¶
type SourcesFile ¶
type SourcesFile struct {
Sources []Source `yaml:"sources"`
}
Click to show internal directories.
Click to hide internal directories.