testconfig

package
v0.0.0-...-35d8de9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCommonClient

func WithCommonClient(c context.Context, base config.Interface) context.Context

WithCommonClient installs a backend.B into the supplied Context that loads its configuration from base.

Types

type Provider

type Provider struct {
	// Base is the base interface.
	Base config.Interface
}

Provider is a client.Provider that is backed by a config interface. This differs from client.RemoteProvider in that it takes an arbitrary config interface instance rather than generating a remote one.

Its intended use is for testing setups.

Provider performs access checks locally using access.CheckAccess.

func (*Provider) GetConfigClient

func (p *Provider) GetConfigClient(c context.Context, a backend.Authority) config.Interface

GetConfigClient implements ClientProvider.

func (*Provider) GetServiceURL

func (p *Provider) GetServiceURL() url.URL

GetServiceURL implements ClientProvider.

Jump to

Keyboard shortcuts

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