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

Source Files

Directories

Path Synopsis
service