audit

package
v0.0.0-...-7c77cb8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audit

func Audit(cfgs Configs, store string) error

Audit performs an audit of repos TODO(mattfarina): Make the process parallel to audit

Types

type Config

type Config struct {

	// The name of the repository. Useful when sending reports and identifying
	// a specific one
	Name string `json:"name"`

	// A URL to the repository
	Location string `json:"location"`

	Reporters []report.Config `json:"reporters,omitempty"`
}

Config contains the configuration for a single repository

type Configs

type Configs []*Config

Configs contains the configuration for one or more repository

func LoadConfig

func LoadConfig(data []byte) (Configs, error)

LoadConfig loads configuration about repositories from a byte stream

func LoadConfigFromFile

func LoadConfigFromFile(path string) (Configs, error)

LoadConfigFromFile loads configuration about repositories from a file on the local file system

type Deet

type Deet struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Digest  string `json:"digest"`
}

type Deets

type Deets struct {
	Name     string            `json:"name"`
	Location string            `json:"location"`
	Charts   map[string][]Deet `json:"charts"`
}

func (*Deets) Add

func (d *Deets) Add(name string, deet Deet)

func (*Deets) Get

func (d *Deets) Get(name, version string) (Deet, error)

Jump to

Keyboard shortcuts

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