package
0.1.7
Repository: https://github.com/hairyhenderson/go-fsimpl.git
Documentation: pkg.go.dev

# Packages

Package vaultauth provides an interface to a few custom Vault auth methods for use with [github.com/hairyhenderson/go-fsimpl/vaultfs], but which can also be used directly with a [*github.com/hashicorp/vault/api.Client].

# Functions

AppRoleAuthMethod authenticates to Vault with the AppRole auth method.
EnvAuthMethod chooses the first auth method to have the correct environment variables set, in this order of precedence: AppRoleAuthMethod GitHubAuthMethod UserPassAuthMethod TokenAuthMethod Deprecated: use [github.com/hairyhenderson/go-fsimpl/vaultfs/vaultauth.EnvAuthMethod] instead.
GitHubAuthMethod authenticates to Vault with the GitHub auth method.
New creates a filesystem for the Vault endpoint rooted at u.
TokenAuthMethod authenticates with the given token, or if none is provided, attempts to read from the $VAULT_TOKEN environment variable, or the $HOME/.vault-token file.
UserPassAuthMethod authenticates to Vault with the UpserPass auth method.
WithAuthMethod configures the given FS to authenticate with auth, if the filesystem supports it.

# Variables

FS is used to register this filesystem with an fsimpl.FSMux nolint:gochecknoglobals.

# Interfaces

AuthMethod is an authentication method that vaultfs can use to acquire a token.