vaultcli

package
v0.2023.21 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 5 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) (secretstorage.SecretStorage, error)

func VaultStorageConfigFromCliArgs

func VaultStorageConfigFromCliArgs(args *VaultCliArgs) *vaultstorage.VaultStorageConfig

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 */
	VaultApproleRoleIdFilePath     string                       `` /* 131-byte string literal not displayed */
	VaultApproleSecretIdFilePath   string                       `` /* 137-byte string literal not displayed */
	VaultKubernetesSATokenFilePath string                       `` /* 274-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