package internal

import "github.com/google/cadvisor/Godeps/_workspace/src/google.golang.org/cloud/internal"

Package internal provides support for the cloud packages.

Users should not import this package directly.

Index

Types

type UATransport

type UATransport struct {
	// Base represents the actual http.RoundTripper
	// the requests will be delegated to.
	Base http.RoundTripper
}

UATransport is an http.RoundTripper that appends Google Cloud client's user-agent to the original request's user-agent header.

func (*UATransport) RoundTrip

func (t *UATransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip appends a user-agent to the existing user-agent header and delegates the request to the base http.RoundTripper.

Source Files

cloud.go

Version
v0.23.3
Published
Jun 8, 2016
Platform
linux/amd64
Imports
2 packages
Last checked
9 minutes ago

Tools for package owners.