Documentation ¶
Index ¶
- Constants
- func WriteTestConfig(str string) error
- type MosnOperator
- func (op *MosnOperator) GetMosnConfig(port int, params string) ([]byte, error)
- func (op *MosnOperator) GetMosnMetrics(port int, key string) ([]byte, error)
- func (op *MosnOperator) LoadMosnConfig() *v2.MOSNConfig
- func (op *MosnOperator) Restart() error
- func (op *MosnOperator) Start(params ...string) error
- func (op *MosnOperator) Stop()
- func (op *MosnOperator) UpdateConfig(port int, typ string, config string) error
- func (op *MosnOperator) UpdateRoute(port int, typ string, config string) error
Constants ¶
View Source
const TempTestConfig = "/tmp/mosn_test_config.json"
Variables ¶
This section is empty.
Functions ¶
func WriteTestConfig ¶
Types ¶
type MosnOperator ¶
type MosnOperator struct {
// contains filtered or unexported fields
}
func NewMosnOperator ¶
func NewMosnOperator(binpath, cfgpath string) *MosnOperator
func StartMosn ¶
func StartMosn(cfgStr string, params ...string) *MosnOperator
func (*MosnOperator) GetMosnConfig ¶ added in v0.18.0
func (op *MosnOperator) GetMosnConfig(port int, params string) ([]byte, error)
func (*MosnOperator) GetMosnMetrics ¶ added in v0.18.0
func (op *MosnOperator) GetMosnMetrics(port int, key string) ([]byte, error)
func (*MosnOperator) LoadMosnConfig ¶ added in v0.18.0
func (op *MosnOperator) LoadMosnConfig() *v2.MOSNConfig
func (*MosnOperator) Restart ¶
func (op *MosnOperator) Restart() error
TODO: More MOSN Operation Restart mosn, hot restart
func (*MosnOperator) Start ¶
func (op *MosnOperator) Start(params ...string) error
func (*MosnOperator) Stop ¶
func (op *MosnOperator) Stop()
func (*MosnOperator) UpdateConfig ¶ added in v0.18.0
func (op *MosnOperator) UpdateConfig(port int, typ string, config string) error
func (*MosnOperator) UpdateRoute ¶ added in v0.22.0
func (op *MosnOperator) UpdateRoute(port int, typ string, config string) error
Click to show internal directories.
Click to hide internal directories.