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

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