gapic

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

gapic-insecure

This directory contains an alternate implementation of the automatically-generated doc.go produced by gapic-go-generator. This modified implementation directly adds auth tokens to gRPC API calls and is only needed when using GAPIC libraries to access insecure (non-HTTPS) services that expect authentication. Typically this is only needed during testing of configurations that require auth tokens, such as when testing locally-running Envoy setups that use authz-server. It is needed because the Go gRPC implementation removes credentials from calls made to insecure services as a safety precaution.

This code should not be used in production.

Documentation

Overview

Use of Context

The ctx passed to NewClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.

To close the open connection, use the Close() method.

For information about setting deadlines, reusing contexts, and more please visit pkg.go.dev/cloud.google.com/go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAuthScopes

func DefaultAuthScopes() []string

DefaultAuthScopes reports the default set of authentication scopes to use with this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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