wrapper

package
v6.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UAAAuthentication

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

UAAAuthentication wraps connections and adds authentication headers to all requests

func NewUAAAuthentication

func NewUAAAuthentication(client UAAClient) *UAAAuthentication

NewUAAAuthentication returns a pointer to a UAAAuthentication wrapper with the client set as the AuthenticationStore

func (*UAAAuthentication) Make

func (t *UAAAuthentication) Make(passedRequest cloudcontroller.Request, passedResponse *cloudcontroller.Response) error

Make adds authentication headers to the passed in request and then calls the wrapped connection's Make

func (*UAAAuthentication) Wrap

Wrap sets the connection on the UAAAuthentication and returns itself

type UAAClient

type UAAClient interface {
	AccessToken() string
	RefreshToken() error
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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