cfg

package
v0.4.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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

func (pc *PerfCfg) GetAuthTokenURL() string

GetAuthTokenURL returns a fully qualified URL to the token endpoint

func (*PerfCfg) GetLoadTestSmpsURL

func (pc *PerfCfg) GetLoadTestSmpsURL() string

GetLoadTestSmpsURL returns a fully qualified URL to the Load Test SMPS endpoint

func (*PerfCfg) GetLoadTestURL added in v0.3.18

func (pc *PerfCfg) GetLoadTestURL() string

GetLoadTestURL returns a fully qualified URL to the Load Test endpoint

Jump to

Keyboard shortcuts

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