luci: Index | Files

package client

import ""

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


Package Files


func NewClient Uses

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.

Package client imports 6 packages (graph). Updated 2020-08-03. Refresh now. Tools for package owners.