Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultJWTProvider ¶
DefaultJWTProvider is an implementation of JWTProvider that reads the Kubernetes service account JWT token located at /var/run/secrets/kubernetes.io/serviceaccount/token and returns it.
Types ¶
type AuthMethod ¶
type AuthMethod struct {
Config Config
}
AuthMethod enables the Vault client to use information about your AuthMethod deployment environment to authenticate itself with Vault.
See https://www.vaultproject.io/api-docs/auth/kubernetes for more information on the Kubernetes auth method.
type Config ¶
type Config struct {
// Role is the AuthMethod service account role that should be used to authenticate with Vault.
Role string
// JWTProvider is an optional field used to override how the Kubernetes service account JWT is retrieved for use
// when authenticating with Vault. If omitted, the client will read the JWT from the
// `/var/run/secrets/kubernetes.io/serviceaccount/token` file.
JWTProvider func() (string, error)
}
Click to show internal directories.
Click to hide internal directories.