token

package
v0.0.0-...-2b3c733 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithNonce

func WithNonce(n string) func(s *EC2Strategy)

Types

type EC2Strategy

type EC2Strategy struct {
	// contains filtered or unexported fields
}

func NewEC2Strategy

func NewEC2Strategy(opts ...func(s *EC2Strategy)) *EC2Strategy

func (*EC2Strategy) GetVaultToken

func (s *EC2Strategy) GetVaultToken(client *api.Client, role string) (string, error)

type StaticStrategy

type StaticStrategy struct {
	Token string
}

func (*StaticStrategy) GetVaultToken

func (s *StaticStrategy) GetVaultToken(client *api.Client, role string) (string, error)

type Strategy

type Strategy interface {
	GetVaultToken(client *api.Client, role string) (string, error)
}

type Token

type Token struct {
	// contains filtered or unexported fields
}

func NewToken

func NewToken(consul *consulapi.Client, role string, s Strategy) *Token

func (*Token) IsValid

func (t *Token) IsValid() bool

func (*Token) Renew

func (t *Token) Renew() error

func (*Token) String

func (t *Token) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL