Documentation ¶
Overview ¶
Copyright 2023 Layer5, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License
Index ¶
Constants ¶
View Source
const ( ErrImportAppCode = "1080" ErrInValidSourceCode = "1081" ErrOnboardAppCode = "1082" ErrAppFoundCode = "1083" ErrInvalidAppNameOrIDCode = "1084" ErrAppFlagCode = "1085" ErrAppManifestCode = "1188" )
Variables ¶
View Source
var AppCmd = &cobra.Command{ Use: "app", Short: "Cloud Native Apps Management", Long: `All apps operations: import, list, view, onboard and offboard. Find more information at: https://docs.meshery.io/reference/mesheryctl#command-reference`, Example: ` // Base command: mesheryctl app [subcommand] `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cmd.Help() } if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { availableSubCmds := []string{"onboard", "offboard", "list", "import", "view"} suggestedCmd := utils.FindClosestArg(args[0], availableSubCmds) if suggestedCmd != "" && suggestedCmd[0] == args[0][0] { return errors.New(utils.AppError(fmt.Sprintf("'%s' is an invalid command for '%s'. Did you mean this?\n\t%s\n", args[0], cmd.CalledAs(), suggestedCmd))) } return errors.New(utils.AppError(fmt.Sprintf("'%s' is an invalid command for '%s'. Use 'mesheryctl perf --help' to display usage guide.\n", args[0], cmd.CalledAs()))) } return nil }, }
AppCmd represents the root command for app commands
Functions ¶
func ErrAppFound ¶ added in v0.6.137
func ErrAppFound() error
func ErrAppManifest ¶ added in v0.6.137
func ErrAppManifest() error
func ErrImportApp ¶ added in v0.6.137
func ErrInValidSource ¶ added in v0.6.167
func ErrInvalidAppNameOrID ¶ added in v0.6.155
func ErrOnboardApp ¶ added in v0.6.137
func ErrOnboardApp() error
func ErrViewAppFlag ¶ added in v0.6.137
func ErrViewAppFlag() error
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.