vaultcli

package
v0.0.0-...-8340aad Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVaultStorage

func CreateVaultStorage(ctx context.Context, args *VaultCliArgs, reader client.Reader) (secretstorage.SecretStorage, error)

func VaultStorageConfigFromCliArgs

func VaultStorageConfigFromCliArgs(ctx context.Context, args *VaultCliArgs, reader client.Reader) (*vaultstorage.VaultStorageConfig, error)

VaultStorageConfigFromCliArgs returns an instance of the VaultStorageConfig with some fields initialized from the corresponding CLI arguments. Notably, the VaultStorageConfig.MetricsRegisterer is NOT configured, because this cannot be done using just the CLI arguments.

Types

type VaultCliArgs

type VaultCliArgs struct {
	VaultHost                      string                       `arg:"--vault-host, env" help:"Mandatory Vault host URL."`
	VaultInsecureTLS               bool                         `` /* 150-byte string literal not displayed */
	VaultAuthMethod                vaultstorage.VaultAuthMethod `` /* 135-byte string literal not displayed */
	VaultKubernetesSATokenFilePath string                       `` /* 274-byte string literal not displayed */
	VaultAppRoleSecretName         string                       `` /* 195-byte string literal not displayed */
	VaultAppRoleSecretNamespace    string                       `` /* 199-byte string literal not displayed */
	VaultKubernetesRole            string                       `` /* 132-byte string literal not displayed */
	VaultDataPathPrefix            string                       `` /* 195-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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