luci: go.chromium.org/luci/gce/vmtoken/client Index | Files

package client

import "go.chromium.org/luci/gce/vmtoken/client"

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

Index

Package Files

client.go

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 2019-07-20. Refresh now. Tools for package owners.