extension

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 31 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DicehubExtensionsMenu = "dicehub.extensions.menu"
View Source
const FilePath = "/app/extensions-init"

Variables

View Source
var CategoryTypes = map[string][]string{
	"action": {
		"source_code_management",
		"build_management",
		"deploy_management",
		"version_management",
		"test_management",
		"data_management",
		"custom_task",
	},
	"addon": {
		"database",
		"distributed_cooperation",
		"search",
		"message",
		"content_management",
		"security",
		"traffic_load",
		"monitoring&logging",
		"content",
		"image_processing",
		"document_processing",
		"sound_processing",
		"custom",
		"general_ability",
		"new_retail",
		"srm",
		"solution",
	},
}

Functions

func ToProtoValue

func ToProtoValue(i interface{}) (*structpb.Value, error)

Types

type MenuItem struct {
	Name string `json:"name"`
}
type MenuMap []*SortMapNode
func (m *MenuMap) Get(key string) (interface{}, bool)
func (m *MenuMap) MarshalJSON() ([]byte, error)
func (m *MenuMap) Put(key string, val interface{})
func (m *MenuMap) ToSortedMapJson(smap *MenuMap) string

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func LoadExtensions

func LoadExtensions(addr string) *Repo

LoadExtensions loads all extensions from the repo (contains all versions below)

type SortMapNode

type SortMapNode struct {
	Key string
	Val interface{}
}

type Version

type Version struct {
	Name    string
	Dirname string

	Spec          *apistructs.Spec // structure of spec.yml
	SpecContent   []byte           // content of spec.yml
	DiceContent   []byte           // content of dice.yml
	ReadmeContent []byte           // content of readme.md

	SwaggerContent []byte // content of swagger.yml
}

Version is a version of an Extension

func NewVersion

func NewVersion(dirname string) (*Version, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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