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 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 ¶
type GithubAuth struct {
AccessToken string
}
GithubAuth is a struct for working with Vault that uses the Github Auth method
func NewGithubAuth ¶
func NewGithubAuth(token 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 ¶ added in v0.5.0
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 ¶ added in v0.5.0
NewK8sAuth initializes and returns a K8sAuth Struct
Click to show internal directories.
Click to hide internal directories.