Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrProcessingConfigCode = "1050" ErrCreatingConfigFileCode = "1051" ErrAddingTokenToConfigCode = "1052" ErrAddingContextToConfigCode = "1053" ErrUnmarshallingConfigFileCode = "1054" ErrGettingRequestContextCode = "1055" ErrInvalidAPIResponseCode = "1056" ErrUnmarshallingAPIDataCode = "1057" ErrConnectingToServerCode = "1058" )
Variables ¶
View Source
var ( ErrCreatingConfigFile = errors.New(ErrCreatingConfigFileCode, errors.Alert, []string{"Unable to create config file"}, []string{"Unable to create config file"}, []string{}, []string{}) ErrAddingTokenToConfig = errors.New(ErrAddingTokenToConfigCode, errors.Alert, []string{"Unable to add token to config"}, []string{"Unable to add token to config"}, []string{}, []string{}) ErrAddingContextToConfig = errors.New(ErrAddingContextToConfigCode, errors.Alert, []string{"Unable to add context to config"}, []string{"Unable to add context to config"}, []string{}, []string{}) ErrUnmarshallingConfigFile = errors.New(ErrUnmarshallingConfigFileCode, errors.Alert, []string{"Error unmarshalling config file"}, []string{"Error unmarshalling config file"}, []string{}, []string{}) )
View Source
var RootCmd = &cobra.Command{ Use: "mesheryctl", Short: "Meshery Command Line tool", Long: `Meshery is the service mesh management plane, providing lifecycle, performance, and configuration management of service meshes and their workloads.`, Args: cobra.MinimumNArgs(1), PreRunE: func(cmd *cobra.Command, args []string) error { log.Println("Args passed in", args) if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.RootError(fmt.Sprintf("invalid command: \"%s\"", args[0]))) } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func ErrConnectingToServer ¶ added in v0.6.2
func ErrGettingRequestContext ¶ added in v0.6.2
func ErrInvalidAPIResponse ¶ added in v0.6.2
func ErrProcessingConfig ¶ added in v0.6.2
func ErrUnmarshallingAPIData ¶ added in v0.6.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.