testenv

package
v0.0.0-...-5253b6b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrBag

func GetAttrBag(attrs map[string]interface{}, identityAttr, identityAttrDomain string) mixerpb.CompressedAttributes

GetAttrBag creates Attributes proto.

Types

type Args

type Args struct {
	MixerServerAddr               string
	ConfigStoreURL                string
	ConfigStore2URL               string
	ConfigDefaultNamespace        string
	ConfigIdentityAttribute       string
	ConfigIdentityAttributeDomain string
	UseAstEvaluator               bool
}

Args includes the required args to initialize Mixer server.

type TestEnv

type TestEnv interface {
	io.Closer
	CreateMixerClient() (mixerpb.MixerClient, *grpc.ClientConn, error)
}

TestEnv interface

func NewEnv

func NewEnv(args *Args, info map[string]template.Info, adapters []adapter.InfoFn) (TestEnv, error)

NewEnv creates a TestEnv instance.

Jump to

Keyboard shortcuts

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