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"` CtlVersion *Version `json:"ctl_version"` }
MesheryCtl stores the configurations used by mesheryctl CLI Default config:
baseMesheryURL: "http://localhost:9081/api", perf: authTokenURI: "/gettoken", loadTestSmpsURI: "/perf/load-test-smps", loadTestURI: "/perf/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
func (*MesheryCtl) GetVersion ¶ added in v0.4.0
func (mc *MesheryCtl) GetVersion() *Version
GetVersion returns the version details of this binary
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
type Version ¶ added in v0.4.0
type Version struct { Build string `json:"build,omitempty"` CommitSHA string `json:"commitsha,omitempty"` }
Version unmarshals the json response from the server's version api
func (*Version) GetCommitSHA ¶ added in v0.4.0
GetCommitSHA returns the commit sha for the binary