Documentation
¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func FindErrorLogs(rootDirs ...string)
- func GetCLIVersion() string
- func GetSHA256FromDisk(binPath string) (string, error)
- func GetSSHConnectionString(publicIP, certFilePath string) string
- func HandleTracking(cmd *cobra.Command, app *application.Avalanche, flags map[string]string)
- func HandleUserMetricsPreference(app *application.Avalanche) error
- func PrintMetricsOptOutPrompt()
- func SearchSHA256File(file []byte, toSearch string) (string, error)
- func SetupRealtimeCLIOutput(cmd *exec.Cmd, redirectStdout bool, redirectStderr bool) (*bytes.Buffer, *bytes.Buffer)
- func SplitKeyValueStringToMap(str string, delimiter string) (map[string]string, error)
- func SplitStringWithQuotes(str string, r rune) []string
- func TrackMetrics(command *cobra.Command, flags map[string]string)
- func ValidateJSON(path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindErrorLogs ¶ added in v1.1.3
func FindErrorLogs(rootDirs ...string)
FindErrorLogs is a utility function, we will NOT do error handling, as this is supposed to be called during error handling itself we don't want to make it even more complex
func GetCLIVersion ¶ added in v1.2.2
func GetCLIVersion() string
func GetSHA256FromDisk ¶ added in v1.0.3
func GetSSHConnectionString ¶ added in v1.3.3
func HandleTracking ¶ added in v1.2.2
func HandleUserMetricsPreference ¶ added in v1.2.2
func HandleUserMetricsPreference(app *application.Avalanche) error
func PrintMetricsOptOutPrompt ¶ added in v1.2.2
func PrintMetricsOptOutPrompt()
func SearchSHA256File ¶ added in v1.0.3
func SetupRealtimeCLIOutput ¶ added in v1.2.7
func SplitKeyValueStringToMap ¶ added in v1.3.3
SplitKeyValueStringToMap splits a string with multiple key-value pairs separated by delimiter. Delimiter must be a single character
func SplitStringWithQuotes ¶ added in v1.3.3
SplitString split string with a rune comma ignore quoted
func TrackMetrics ¶ added in v1.2.2
func ValidateJSON ¶
ValidateJSON takes a json string and returns it's byte representation if it contains valid JSON
Types ¶
This section is empty.