Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrPatternsNotFoundCode = "1115" ErrInvalidPatternFileCode = "1116" ErrPatternInvalidNameOrIDCode = "1117" )
Variables ¶
View Source
var PatternCmd = &cobra.Command{ Use: "pattern", Short: "Cloud Native Patterns Management", Long: `Manage service meshes using predefined patterns. Find more information at: https://docs.khulnasoft.com/reference/meshplayctl#command-reference`, Example: ` // Apply pattern file: meshplayctl pattern apply --file [path to pattern file | URL of the file] // Delete pattern file: meshplayctl pattern delete --file [path to pattern file] // View pattern file: meshplayctl pattern view [pattern name | ID] // List all patterns: meshplayctl pattern list `, 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.PatternError(fmt.Sprintf("'%s' is an invalid command. Use 'meshplayctl pattern --help' to display usage guide.\n", args[0]))) } return nil }, }
PatternCmd represents the root command for pattern commands
Functions ¶
func ErrInvalidPatternFile ¶
func ErrPatternNotFound ¶
func ErrPatternNotFound() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.