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 ¶ added in v0.15.0
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)
type Plugin ¶
type Plugin interface { List() scapiv1alpha1.ScorecardOutput Run() scapiv1alpha1.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
Click to show internal directories.
Click to hide internal directories.