client

package
v0.0.0-...-a0a3655 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package client implements client-side fetch and transmission of signed GCE VM metadata tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(meta *metadata.Client, acc string) *http.Client

NewClient returns an *http.Client which sets a GCE VM metadata token in the Header of an *http.Request during Do. The audience for the token is the *http.Request.URL.Host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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