filter

package
v0.5.63-rc-1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidAuthTokenCode = "1000"
	ErrInvalidAPICallCode   = "1001"
	ErrReadAPIResponseCode  = "1002"
	ErrUnmarshalCode        = "1003"
)

Variables

View Source
var FilterCmd = &cobra.Command{
	Use:   "filter",
	Short: "Service Mesh Filter Management",
	Long:  ``,
	Args:  cobra.MinimumNArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok {
			return errors.New(utils.SystemError(fmt.Sprintf("invalid command: \"%s\"", 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

func ErrInvalidAuthToken added in v0.5.50

func ErrInvalidAuthToken() error

func ErrReadAPIResponse added in v0.5.50

func ErrReadAPIResponse(err error) error

func ErrUnmarshal added in v0.5.50

func ErrUnmarshal(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