Versions in this module Expand all Collapse all v0 v0.62.0 Apr 16, 2024 Changes in this version + type Check interface + Enabled func() bool + Run func(context.Context, *ctldgraph.ChangeGraph) error + SetConfig func(CheckConfig) error + SetEnabled func(bool) + func NewCheck(cf CheckFunc, sf ConfigFunc, enabled bool) Check + type CheckConfig map[string]any + type CheckFunc func(context.Context, *ctldgraph.ChangeGraph, CheckConfig) error + type ConfigFunc func(CheckConfig) error + type Registry struct + func NewRegistry(checks map[string]Check) *Registry + func (c *Registry) AddCheck(name string, check Check) + func (c *Registry) AddFlags(flags *pflag.FlagSet) + func (c *Registry) Run(ctx context.Context, cg *ctldgraph.ChangeGraph) error + func (c *Registry) Set(s string) error + func (c *Registry) SetConfig(conf []config.PreflightRule) error + func (c *Registry) String() string + func (c *Registry) Type() string