vault: github.com/hashicorp/vault/command/agent/auth Index | Files | Directories

package auth

import "github.com/hashicorp/vault/command/agent/auth"

Index

Package Files

auth.go

type AuthConfig Uses

type AuthConfig struct {
    Logger    hclog.Logger
    MountPath string
    WrapTTL   time.Duration
    Config    map[string]interface{}
}

type AuthHandler Uses

type AuthHandler struct {
    DoneCh   chan struct{}
    OutputCh chan string
    // contains filtered or unexported fields
}

AuthHandler is responsible for keeping a token alive and renewed and passing new tokens to the sink server

func NewAuthHandler Uses

func NewAuthHandler(conf *AuthHandlerConfig) *AuthHandler

func (*AuthHandler) Run Uses

func (ah *AuthHandler) Run(ctx context.Context, am AuthMethod)

type AuthHandlerConfig Uses

type AuthHandlerConfig struct {
    Logger                       hclog.Logger
    Client                       *api.Client
    WrapTTL                      time.Duration
    EnableReauthOnNewCredentials bool
}

type AuthMethod Uses

type AuthMethod interface {
    Authenticate(context.Context, *api.Client) (string, map[string]interface{}, error)
    NewCreds() chan struct{}
    CredSuccess()
    Shutdown()
}

Directories

PathSynopsis
alicloud
approle
aws
azure
cert
cf
gcp
jwt
kubernetes

Package auth imports 7 packages (graph) and is imported by 33 packages. Updated 2019-09-13. Refresh now. Tools for package owners.