native

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvironment

func NewEnvironment() (api.Component, error)

NewEnvironment factory function for the component

Types

type Environment

type Environment struct {
	Namespace string

	// Mesh for configuring pilot.
	Mesh *meshConfig.MeshConfig

	// ServiceManager for all deployed services.
	ServiceManager *service.Manager
	// contains filtered or unexported fields
}

Environment for testing natively on the host machine. It implements api.Environment, and also hosts publicly accessible methods that are specific to local environment.

func GetEnvironment

func GetEnvironment(r component.Repository) (*Environment, error)

GetEnvironment from the repository.

func GetEnvironmentOrFail

func GetEnvironmentOrFail(r component.Repository, t testing.TB) *Environment

GetEnvironmentOrFail from the repository.

func (*Environment) Descriptor

func (p *Environment) Descriptor() component.Descriptor

Descriptor for this component.

func (*Environment) DumpState

func (p *Environment) DumpState(context string)

DumpState implements the api.Environment interface

func (*Environment) Evaluate

func (p *Environment) Evaluate(tpl string) (string, error)

Evaluate implements the api.Environment interface

func (*Environment) Scope

func (p *Environment) Scope() lifecycle.Scope

Scope for this component.

func (*Environment) Start

func (p *Environment) Start(ctx context.Instance, scope lifecycle.Scope) error

Start implements the api.Environment interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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