testconfig

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCommonClient

func WithCommonClient(c context.Context, base ccfg.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 ccfg.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) ccfg.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