filter

package
v0.6.136 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidAPICallCode = "1016"
)

Please reference the following before contributing an error code: https://docs.meshery.io/project/contributing/contributing-error https://github.com/meshery/meshkit/blob/master/errors/errors.go

Variables

View Source
var FilterCmd = &cobra.Command{
	Use:   "filter",
	Short: "Cloud Native Filter Management",
	Long:  ``,
	Example: `
// Base command for WASM filters
mesheryctl filter [subcommands]	
	`,
	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.FilterError(fmt.Sprintf("'%s' is a invalid command.  Use 'mesheryctl filter --help' to display usage guide.\n", args[0])))
		}
		return nil
	},
}

FilterCmd represents the root command for filter commands

Functions

func ErrInvalidAPICall added in v0.5.50

func ErrInvalidAPICall(statusCode int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL