Documentation ¶
Index ¶
- Variables
- func AddAuthDetails(req *http.Request, filepath string) error
- func ContentTypeIsHTML(resp *http.Response) bool
- func DownloadFile(filepath string, url string) error
- func GenerateConfigGKE(SAName, namespc string) error
- func GenerateConfigMinikube() error
- func GetMesheryGitHubOrg() string
- func GetMesheryGitHubRepo() string
- func IsMesheryRunning() bool
- func IsValidSubcommand(available []*cobra.Command, sub string) bool
- func PerfError(msg string) string
- func PreReqCheck() error
- func RootError(msg string) string
- func SafeClose(co io.Closer)
- func SetFileLocation() error
- func StringWithCharset(length int) string
- func SystemError(msg string) string
- func UpdateAuthDetails(filepath string) error
- func UploadFileWithParams(uri string, params map[string]string, paramName, path string) (*http.Request, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ResetFlag indicates if a reset is required ResetFlag bool // MesheryFolder is the default relative location of the meshery config // related configuration files. MesheryFolder = ".meshery" // DockerComposeFile is the default location within the MesheryFolder // where the docker compose file is located? DockerComposeFile = "meshery.yaml" // AuthConfigFile is the location of the auth file for performing perf testing AuthConfigFile = "auth.json" )
Functions ¶
func AddAuthDetails ¶
AddAuthDetails Adds authentication cookies to the request
func ContentTypeIsHTML ¶ added in v0.3.18
ContentTypeIsHTML Checks if the response is an HTML resposnse
func DownloadFile ¶
DownloadFile from url and save to configured file location
func GenerateConfigGKE ¶
GenerateConfigGKE generates kube config file in /tmp/meshery/kubeconfig.yaml for a GKE cluster
func GenerateConfigMinikube ¶
func GenerateConfigMinikube() error
GenerateConfigMinikube generates kube config file in /tmp/meshery/kubeconfig.yaml for a Minikube cluster
func GetMesheryGitHubOrg ¶ added in v0.4.11
func GetMesheryGitHubOrg() string
func GetMesheryGitHubRepo ¶ added in v0.4.11
func GetMesheryGitHubRepo() string
Get Meshery GitHub Details
func IsMesheryRunning ¶
func IsMesheryRunning() bool
IsMesheryRunning checks if the meshery server containers are up and running
func IsValidSubcommand ¶
IsValidSubcommand checks if the passed subcommand is supported by the parent command
func PerfError ¶
PerfError returns a formatted error message with a link to 'perf' command usage page at in addition to the error message
func RootError ¶
RootError returns a formatted error message with a link to 'root' command usage page at in addition to the error message
func StringWithCharset ¶
StringWithCharset generates a random string with a given length
func SystemError ¶
SystemError returns a formatted error message with a link to 'system' command usage page in addition to the error message
func UpdateAuthDetails ¶
UpdateAuthDetails checks gets the token (old/refreshed) from meshery server and writes it back to the config file
Types ¶
This section is empty.