config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintConfiguration

func PrintConfiguration(cfg *Configuration)

Types

type Configuration

type Configuration struct {
	EnvRegex          string        `mapstructure:"env-regex"`
	RootDirectory     string        `mapstructure:"root-dir"`
	FileRegex         string        `mapstructure:"file-regex"`
	SecretSkip        bool          `mapstructure:"secret-skip"`
	SecretName        string        `mapstructure:"secret-name"`
	SecretNamespace   string        `mapstructure:"secret-namespace"`
	EjsonKey          []string      `mapstructure:"ejson-key"`
	SkipDecrypt       bool          `mapstructure:"skip-decrypt"`
	KubectlTimeout    time.Duration `mapstructure:"kubectl-timeout"`
	Kubeconfig        string        `mapstructure:"kubeconfig"`
	KubeAPI           string        `mapstructure:"kube-api"`
	Output            string        `mapstructure:"output"`
	ConvertSecretname bool          `mapstructure:"convert-secret-name"`
	SopSKeyring       string        `mapstructure:"sops-keyring"`
	SopsTempKeyring   bool          `mapstructure:"sops-temp-keyring"`
}

func LoadConfiguration

func LoadConfiguration(cfgFile string, cmd *cobra.Command, directory string) (*Configuration, error)

Jump to

Keyboard shortcuts

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