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 processing json in config file"}, []string{"Error processing json in config file"}, []string{}, []string{}) )
View Source
var RootCmd = &cobra.Command{ Use: "mesheryctl", Short: "Meshery Command Line tool", Long: `As a self-service engineering platform, Meshery enables collaborative design and operation of cloud native infrastructure.`, Example: ` // Base command mesheryctl // Display help about command/subcommand mesheryctl --help mesheryctl system start --help // For viewing verbose output mesheryctl -v [or] --verbose `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cmd.Help() } if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.RootError(fmt.Sprintf("'%s' is an invalid command. Use 'mesheryctl --help' to display usage guide.\n", 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.