connection

package
v0.3.0 Latest Latest
Warning

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

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

README

connection

This directory contains a Go package that can be used to get a Registry API client that authenticates using a standard set of environment variables.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = *gapic.RegistryClient

Client is a client of the Registry API

func NewClient

func NewClient(ctx context.Context) (Client, error)

NewClient creates a new GAPIC client using environment variable settings.

func NewClientWithSettings added in v0.2.0

func NewClientWithSettings(ctx context.Context, settings *Settings) (Client, error)

NewClientWithSettings creates a GAPIC client with specified settings.

type Settings added in v0.2.0

type Settings struct {
	Address  string // service address
	Insecure bool   // if true, connect over HTTP
	Token    string // bearer token
}

Settings configure the client.

Jump to

Keyboard shortcuts

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