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 */ }
Click to show internal directories.
Click to hide internal directories.