addonregistry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentSchemaVersion = 1

Variables

This section is empty.

Functions

func Validate

func Validate(registry Registry) []error

Types

type Constructor

type Constructor struct {
	Addable    bool   `json:"addable"`
	Package    string `json:"package"`
	Function   string `json:"function"`
	Options    string `json:"options,omitempty"`
	OptionsCLI string `json:"optionsCLI,omitempty"`
}

type Entry

type Entry struct {
	Name                  string      `json:"name"`
	Summary               string      `json:"summary"`
	Description           string      `json:"description"`
	Kind                  string      `json:"kind"`
	Lifecycle             string      `json:"lifecycle"`
	Compatibility         string      `json:"compatibility"`
	MinGOWDK              string      `json:"minGOWDK,omitempty"`
	MaxGOWDK              string      `json:"maxGOWDK,omitempty"`
	ModulePath            string      `json:"modulePath"`
	PackagePath           string      `json:"packagePath"`
	ImportPath            string      `json:"importPath"`
	Owner                 string      `json:"owner"`
	SourceRepository      string      `json:"sourceRepository"`
	License               string      `json:"license"`
	Documentation         string      `json:"documentation"`
	Features              []string    `json:"features,omitempty"`
	PublicInterfaces      []string    `json:"publicInterfaces,omitempty"`
	RequiredExternalTools []string    `json:"requiredExternalTools,omitempty"`
	NetworkBehavior       []string    `json:"networkBehavior,omitempty"`
	ProcessBehavior       []string    `json:"processBehavior,omitempty"`
	SecurityNotes         []string    `json:"securityNotes,omitempty"`
	Trust                 Trust       `json:"trust"`
	Constructor           Constructor `json:"constructor"`
}

type Registry

type Registry struct {
	SchemaVersion int     `json:"schemaVersion"`
	Addons        []Entry `json:"addons"`
}

func Bundled

func Bundled() (Registry, error)

func Parse

func Parse(contents []byte) (Registry, error)

type Trust

type Trust struct {
	Level string `json:"level"`
	Notes string `json:"notes"`
}

Jump to

Keyboard shortcuts

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