proxy

package
v0.0.0-...-a1f2fe4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalComponent

type LocalComponent struct {
	framework.Component
	// contains filtered or unexported fields
}

LocalComponent is a component of local proxy binary in process

func NewLocalComponent

func NewLocalComponent(n, logDir string) *LocalComponent

NewLocalComponent create a LocalComponent with name and log dir

func (*LocalComponent) Cleanup

func (proxyComp *LocalComponent) Cleanup() error

Cleanup clean up tmp files and other resource created by LocalComponent

func (*LocalComponent) GetName

func (proxyComp *LocalComponent) GetName() string

GetName return component name

func (*LocalComponent) IsAlive

func (proxyComp *LocalComponent) IsAlive() (bool, error)

IsAlive check the process of local server is running TODO: Process running doesn't guarantee server is ready TODO: Need a better way to check if component is alive/running

func (*LocalComponent) Start

func (proxyComp *LocalComponent) Start() (err error)

Start brings up a local envoy using start_envory script from istio/proxy

func (*LocalComponent) Stop

func (proxyComp *LocalComponent) Stop() (err error)

Stop kill the envory process

Jump to

Keyboard shortcuts

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