checkconfig

package
v0.1.15-beta.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package checkconfig provides all the necessary components for the `check` command to load its configuration.

Index

Constants

View Source
const GlobalConfigDirectory = "/etc/preflight/"

GlobalConfigDirectory is a static path where configuration may be loaded from. This is designed to support this executable in Docker containers.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterName     string
	PackageSources  []*packagesources.TypedConfig
	DataGatherers   map[string]datagatherer.Config
	Outputs         []*output.TypedConfig
	EnabledPackages []*EnabledPackage
}

Config is the configuration for a Preflight check.

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

LoadConfig loads a Preflight check configuration from a file at the path specified.

type EnabledPackage

type EnabledPackage struct {
	ID              string
	EnabledRuleIDs  []string `mapstructure:"enabled-rules"`
	DisabledRuleIDs []string `mapstructure:"disabled-rules"`
}

EnabledPackage is the configuarion for an enabled Preflight package.

Jump to

Keyboard shortcuts

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