scorecard

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	JSONOutputFormat = "json"
	TextOutputFormat = "text"
)
View Source
const DefaultConfigFile = ".osdk-scorecard"

Variables

View Source
var (
	Log = logrus.New()
)

Functions

func ConfigDocLink() string

Types

type Config added in v0.15.0

type Config struct {
	List          bool
	OutputFormat  string
	Version       string
	Selector      labels.Selector
	Bundle        string
	Kubeconfig    string
	Plugins       []Plugin
	PluginConfigs []PluginConfig
	LogReadWriter io.ReadWriter
}

func (Config) GetPlugins added in v0.15.0

func (s Config) GetPlugins(configs []PluginConfig) ([]Plugin, error)

func (Config) RunTests added in v0.15.0

func (s Config) RunTests() error

type Plugin

type Plugin interface {
	List() scapiv1alpha2.ScorecardOutput
	Run() scapiv1alpha2.ScorecardOutput
}

type PluginConfig added in v0.15.0

type PluginConfig struct {
	Basic *scplugins.BasicAndOLMPluginConfig `mapstructure:"basic,omitempty"`
	Olm   *scplugins.BasicAndOLMPluginConfig `mapstructure:"olm,omitempty"`
}

func (PluginConfig) ValidateConfig added in v0.15.0

func (config PluginConfig) ValidateConfig(idx int) error

ValidateConfig takes a config for a plugin and returns a nil error if valid or an error explaining why the config is invalid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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