v1

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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 Configuration

type Configuration struct {
	Version        string         `yaml:"apiVersion"`
	Backend        string         `yaml:"backend"`
	ExportDenylist []string       `yaml:"exportdenylist"` // for some reason export_denylist is not a good key (Viper bug?)
	Sources        []Source       `yaml:"sources"`
	Policies       []string       `yaml:"policies"`
	Export         []ExportScript `yaml:"export"`
}

A Configuration represents a configuration object conforming to V.1 of the configuration schema

type ExportScript

type ExportScript struct {
	Target   string `yaml:"target"`
	Filename string `yaml:"filename"`
	Pre      string `yaml:"pre"`
	Each     string `yaml:"each"`
	Post     string `yaml:"post"`
}

ExportScript defines how to generate import scripts for a set of statements

type Source

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

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