config

package
v0.0.1-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFileConfig

type LocalFileConfig struct {
	Filename   string `json:"filename"`
	EncPrivKey string `json:"enc_priv_key,omitempty"`
	Passphrase string `json:"passphrase,omitempty"`
}

type OnePasswordConfig

type OnePasswordConfig struct {
}

type SecretEngine

type SecretEngine string
const (
	SecretEngineVault     SecretEngine = "vault"
	SecretEngineLocalFile SecretEngine = "local-file"
	SecretEnginePrintKeys SecretEngine = "print-keys"
)

type SecureTemplateConfig

type SecureTemplateConfig struct {
	SecretEngine SecretEngine `json:"secret_engine"`
	VaultConfig  VaultConfig  `json:"vault_config,omitempty"`
	//OnePasswordConfig OnePasswordConfig `json:"one_password_config,omitempty"`
	LocalFileConfig LocalFileConfig             `json:"local_file_config,omitempty"`
	Options         SecureTemplateConfigOptions `json:"options"`
}

func (*SecureTemplateConfig) Json

func (cfg *SecureTemplateConfig) Json(out io.Writer) error

type SecureTemplateConfigOptions

type SecureTemplateConfigOptions struct {
	SecretShowNameAsValueIfEmpty       bool   `json:"secretShowNameAsValueIfEmpty"`
	SecretIgnoreNotFoundKey            bool   `json:"secretIgnoreNotFoundKey"`
	EnvShowNameAsValueIfEmpty          bool   `json:"envShowNameAsValueIfEmpty"`
	EnvAllowAccessToSecureTemplateEnvs bool   `json:"envAllowAccessToSecureTemplateEnvs"`
	EnvRestrictedNameRegex             string `json:"envRestrictedNameRegex"`
}

type VaultConfig

type VaultConfig struct {
	Address      string `json:"address"`
	Token        string `json:"token,omitempty"`
	SecretEngine string `json:"secret_engine,omitempty"`
	Namespace    string `json:"ns,omitempty"`
}

Jump to

Keyboard shortcuts

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