Back to godoc.org

Package client

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

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

Index

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