Help us shape the future of Go! Take the 2026 Go Developer Survey

tokencredentials

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousCredential

type AnonymousCredential struct {
}

func (*AnonymousCredential) GetToken

GetToken returns an AccessToken and an error if the request fails.

func (*AnonymousCredential) NewAuthenticationPolicy

func (*AnonymousCredential) NewAuthenticationPolicy(options policy.BearerTokenOptions) policy.Policy

NewAuthenticationPolicy creates a new authentication policy based on the given options.

type PolicyFunc

type PolicyFunc func(*policy.Request) (*http.Response, error)

PolicyFunc is a type that implements the Policy interface. Use this type when implementing a stateless policy as a first-class function.

func (PolicyFunc) Do

func (pf PolicyFunc) Do(req *policy.Request) (*http.Response, error)

Do implements the Policy interface on PolicyFunc.

Jump to

Keyboard shortcuts

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