Documentation
¶
Overview ¶
Package config provides utilities for reading configfiles
Index ¶
- func Load(file string, scheme *runtime.Scheme) (*v2alpha2.ProjectConfig, error)
- func MatchesIgnorePattern(ignorePatterns []string, id string) (bool, error)
- func OptionsFromConfig(cfg *v2alpha2.ProjectConfig, scheme *runtime.Scheme) manager.Options
- func TokenFromConfig(cfg *v2alpha2.ProjectConfig) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load loads controller configuration from the given file using the types registered in the scheme.
func MatchesIgnorePattern ¶ added in v0.23.0
MatchesIgnorePattern matches a specified ignore pattern, and excludes matches from being deleted
func OptionsFromConfig ¶ added in v0.8.0
OptionsFromConfig creates a manager.Options based on a configuration file
func TokenFromConfig ¶ added in v0.12.5
func TokenFromConfig(cfg *v2alpha2.ProjectConfig) (string, error)
TokenFromConfig returns the Styra DAS api token directly from "styra.token" in the config or using the "styra.tokenSecretPath" to retrieve it fra a secret
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.