filter

package
v0.0.0-...-9e9d5e8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrFilterNameOrIDCode = "1096"
	ErrFetchFilterCode    = "1097"
)

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

Variables

View Source
var FilterCmd = &cobra.Command{
	Use:   "filter",
	Short: "Cloud Native Filter Management",
	Long: `Cloud Native Filter Management
Find more information at: https://docs.khulnasoft.com/reference/meshplayctl#command-reference`,
	Example: `
// Base command for WASM filters:
meshplayctl 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 an invalid command.  Use 'meshplayctl filter --help' to display usage guide.\n", args[0])))
		}
		return nil
	},
}

FilterCmd represents the root command for filter commands

Functions

func ErrFetchFilter

func ErrFetchFilter(err error) error

func ErrFilterNameOrID

func ErrFilterNameOrID(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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