testauth

package
v1.0.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	NameValue  string
	TokenValue string
	Err        error
}

Source is testing tokenauth.Source that can be mocked.

func (*Source) Name

func (s *Source) Name() string

Name of the auth Source.

func (*Source) Token

func (s *Source) Token(_ context.Context) (string, error)

Token returns a token given while constructing.

Jump to

Keyboard shortcuts

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