client

package
v1.0.0-...-7f80349 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHTTPClient = errors.New("no http context")

ErrNoHTTPClient denotes that not http.Client has been added to the context

Functions

func Compute

func Compute(ctx context.Context, req *http.Request) context.Context

Compute adds the compute authenticated client to the context

func Generic

func Generic(config *oauth2.Config) func(context.Context, *http.Request) context.Context

Generic adds a generic oauth authenticated client to the context

func Get

func Get(ctx context.Context) *http.Client

Get gets the http.Client from the ctx

Types

This section is empty.

Jump to

Keyboard shortcuts

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