registry

package
v0.7.20 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGenerateModelCode     = "1190"
	ErrGenerateComponentCode = "1191"
	ErrUpdateModelCode       = "1192"
	ErrUpdateComponentCode   = "1193"
	ErrUpdateRegistryCode    = "1194"
)
View Source
var (
	ExcludeDirs = []string{"relationships", "policies"}
)
View Source
var (
	GoogleSpreadSheetURL = "https://docs.google.com/spreadsheets/d/"
)
View Source
var RegistryCmd = &cobra.Command{
	Use:   "registry",
	Short: "Meshery Registry Management",
	Long:  `Manage the state and configuration of Meshery Registry.`,
	Example: `
	mesheryctl registry [subcommand]
	`,

	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.SystemError(fmt.Sprintf("'%s' is an invalid command.  Use 'mesheryctl registry --help' to display usage guide.\n", args[0])))
		}
		return nil
	},
}

PublishCmd represents the publish command to publish Meshery Models to Websites, Remote Provider, Meshery

Functions

func ErrGenerateComponent added in v0.7.18

func ErrGenerateComponent(err error, modelName, compName string) error

func ErrGenerateModel added in v0.7.18

func ErrGenerateModel(err error, modelName string) error

func ErrUpdateComponent added in v0.7.18

func ErrUpdateComponent(err error, modelName, compName string) error

func ErrUpdateModel added in v0.7.18

func ErrUpdateModel(err error, modelName string) error

func ErrUpdateRegistry added in v0.7.18

func ErrUpdateRegistry(err error, path string) error

func GenerateDefsForCoreRegistrant added in v0.7.18

func GenerateDefsForCoreRegistrant(model utils.ModelCSV) error

For registrants eg: meshery, whose components needs to be directly created by referencing the sheet. the sourceURL contains the "rangeString" : the value that describes the sheet in which the components are listed, and their starting row to ending row.

func GetSheetIDFromTitle added in v0.7.18

func GetSheetIDFromTitle(s *sheets.Spreadsheet, title string) int64

func InvokeCompUpdate added in v0.7.18

func InvokeCompUpdate() error

func InvokeGenerationFromSheet added in v0.7.18

func InvokeGenerationFromSheet() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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