Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRoleAuth ¶
AppRoleAuth is a struct for working with Vault that uses AppRole
func NewAppRoleAuth ¶
func NewAppRoleAuth(roleID, secretID, mountPath string) *AppRoleAuth
NewAppRoleAuth initalizes a new AppRolAuth with role id and secret id
func (*AppRoleAuth) Authenticate ¶
func (a *AppRoleAuth) Authenticate(vaultClient *api.Client) error
Authenticate authenticates with Vault using App Role and returns a token
type GithubAuth ¶
GithubAuth is a struct for working with Vault that uses the Github Auth method
func NewGithubAuth ¶
func NewGithubAuth(token, mountPath string) *GithubAuth
NewGithubAuth initializes a new GithubAuth with token
func (*GithubAuth) Authenticate ¶
func (g *GithubAuth) Authenticate(vaultClient *api.Client) error
Authenticate authenticates with Vault and returns a token
type K8sAuth ¶
type K8sAuth struct { // Optional, will use default path of auth/kubernetes if left blank MountPath string // Optional, will use default service account if left blank TokenPath string Role string }
K8sAuth TODO
func NewK8sAuth ¶
NewK8sAuth initializes and returns a K8sAuth Struct
type UserPassAuth ¶ added in v1.13.0
UserPassAuth is a struct for working with Vault that uses Username & Password
func NewUserPassAuth ¶ added in v1.13.0
func NewUserPassAuth(username, password, mountPath string) *UserPassAuth
NewUserPassAuth initalizes a new NewUserPassAuth with username & password
func (*UserPassAuth) Authenticate ¶ added in v1.13.0
func (a *UserPassAuth) Authenticate(vaultClient *api.Client) error
Authenticate authenticates with Vault using userpass and returns a token