conf

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigV2

type ConfigV2 struct {
	Version         string `yaml:"apiVersion"`
	Backend         string
	ExportBlacklist map[string][]string
	Sources         map[int]Source
	Policies        []Policy
}

A ConfigV2 represents a configuration object conforming to V.2 of the configuration schema

func (*ConfigV2) GetSources

func (c *ConfigV2) GetSources() map[int]Source

GetSources returns a slice of sources

func (ConfigV2) Validate

func (c ConfigV2) Validate() (result bool)

Validate the configuration

type Policy

type Policy int

A Policy determines how statements from different source repositories are to be merged (reconciled, when conflicting)

type Source

type Source struct {
	Repo   string `yaml:"repo"`
	Branch string `yaml:"branch"`
	Signed bool   `yaml:"signed"`
}

A Source represents a remote repository in which vulnerability statements are stored

Jump to

Keyboard shortcuts

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