bearerkeychain

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 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 Keychain

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

Keychain represents a Bearer Token keychain entry.

func New

func New(token string) *Keychain

New creates a new Bearer Token keychain. If the provided token is empty, this will always resolve to anonymous auth. Otherwise it returns the bearer auth.

func (*Keychain) Resolve

Resolve implements Resolver for the given keychain.

Jump to

Keyboard shortcuts

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