Documentation ¶
Index ¶
- type LocalCompConfig
- type LocalCompStatus
- type LocalComponent
- func (proxyComp *LocalComponent) GetConfig() framework.Config
- func (proxyComp *LocalComponent) GetName() string
- func (proxyComp *LocalComponent) GetStatus() framework.Status
- func (proxyComp *LocalComponent) IsAlive() (bool, error)
- func (proxyComp *LocalComponent) SetConfig(config framework.Config) error
- func (proxyComp *LocalComponent) Start() (err error)
- func (proxyComp *LocalComponent) Stop() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCompConfig ¶
LocalCompConfig contains configs for LocalComponent
type LocalCompStatus ¶
LocalCompStatus contains status for LocalComponent
type LocalComponent ¶
LocalComponent is a component of local proxy binary in process
func NewLocalComponent ¶
func NewLocalComponent(n string, config LocalCompConfig) *LocalComponent
NewLocalComponent create a LocalComponent with name and log dir
func (*LocalComponent) GetConfig ¶
func (proxyComp *LocalComponent) GetConfig() framework.Config
GetConfig return the config for outside use
func (*LocalComponent) GetName ¶
func (proxyComp *LocalComponent) GetName() string
GetName implement the function in component interface
func (*LocalComponent) GetStatus ¶
func (proxyComp *LocalComponent) GetStatus() framework.Status
GetStatus return the status for outside use
func (*LocalComponent) IsAlive ¶
func (proxyComp *LocalComponent) IsAlive() (bool, error)
IsAlive check the process of local proxy is listening on port.
func (*LocalComponent) SetConfig ¶
func (proxyComp *LocalComponent) SetConfig(config framework.Config) error
SetConfig set a config into this component
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 stop this local component by kill the process
Click to show internal directories.
Click to hide internal directories.