Back to

Package client

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


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


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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier