oauthtoken

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(logger hclog.Logger, agent rpcdef.Agent) (*Manager, error)

func (*Manager) Get

func (s *Manager) Get() string

Get returns current auth token Safe for concurrent use

func (*Manager) Refresh

func (s *Manager) Refresh() error

Refresh gets a new auth token, call this once if getting 401 when calling api Safe for concurrent use

Jump to

Keyboard shortcuts

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