Documentation
¶
Overview ¶
Package configs provides the global Config configuration type for kat.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValidKinds contains the valid kind values for global configurations. ValidKinds = []string{"Configuration"} // DefaultValidator validates global configuration against the JSON schema. DefaultValidator = yaml.MustNewValidator("/configs.v1beta1.json", schemaJSON) )
Functions ¶
func WriteDefault ¶
WriteDefault writes the embedded default config.yaml to the specified path.
Types ¶
type Config ¶
type Config struct {
Command *command.Config `json:",inline"`
UI *ui.Config `json:",inline"`
v1beta1.TypeMeta `json:",inline"`
}
Config represents the global kat configuration.
func (*Config) EnsureDefaults ¶
func (c *Config) EnsureDefaults()
EnsureDefaults initializes nil fields to their default values.
func (Config) JSONSchemaExtend ¶
func (c Config) JSONSchemaExtend(jss *jsonschema.Schema)
func (Config) MarshalYAML ¶
MarshalYAML serializes the config to YAML.
Click to show internal directories.
Click to hide internal directories.