scorecard

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

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