connection

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 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 AdminClient added in v0.3.5

type AdminClient = *gapic.AdminClient

func NewAdminClient added in v0.3.5

func NewAdminClient(ctx context.Context) (AdminClient, error)

NewAdminClient creates a new GAPIC client using environment variable settings.

func NewAdminClientWithSettings added in v0.3.5

func NewAdminClientWithSettings(ctx context.Context, settings *Settings) (AdminClient, error)

NewAdminClientWithSettings creates a GAPIC client with specified settings.

type Client

type Client = *gapic.RegistryClient

Client is a client of the Registry API TODO: Rename this to RegistryClient

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