Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MesheryCtl ¶
type MesheryCtl struct { // BaseMesheryURL is the base URL of the meshery server BaseMesheryURL string `json:"baseMesheryURL"` // Perf stores the perf subcommand configurations Perf *PerfCfg `json:"perf"` }
MesheryCtl stores the configurations used by mesheryctl CLI Default config:
baseMesheryURL: "http://localhost:9081/api", perf: authTokenURI: "/gettoken", loadTestSmpsURI: "/load-test-smps", loadTestURI: "/load-test",
func GetMesheryCtl ¶
func GetMesheryCtl(v *viper.Viper) (*MesheryCtl, error)
GetMesheryCtl returns a reference to the mesheryctl configuration object.
func (*MesheryCtl) GetBaseMesheryURL ¶
func (mc *MesheryCtl) GetBaseMesheryURL() string
GetBaseMesheryURL returns the base meshery server URL
func (*MesheryCtl) GetPerf ¶
func (mc *MesheryCtl) GetPerf() *PerfCfg
GetPerf returns a reference to the perf configuration object
type PerfCfg ¶
type PerfCfg struct { // AuthTokenURI stores the URI for the token endpoint AuthTokenURI string `json:"AuthtokenURI"` // LoadTestSmpsURI stores the URI for the load test SMPS endpoint LoadTestSmpsURI string `json:"loadTestSmpsURI"` LoadTestURI string `json:"loadTestURI"` // contains filtered or unexported fields }
PerfCfg stores the perf subcommand configurations
func (*PerfCfg) GetAuthTokenURL ¶
GetAuthTokenURL returns a fully qualified URL to the token endpoint
func (*PerfCfg) GetLoadTestSmpsURL ¶
GetLoadTestSmpsURL returns a fully qualified URL to the Load Test SMPS endpoint
func (*PerfCfg) GetLoadTestURL ¶ added in v0.3.18
GetLoadTestURL returns a fully qualified URL to the Load Test endpoint
Click to show internal directories.
Click to hide internal directories.