models

package
v1.23.13 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRegistry

func LoadRegistry(registryPath string) (*extensions.Registry, error)

Types

type ExtensionSchema

type ExtensionSchema struct {
	Id                 string                           `yaml:"id"                 json:"id"`
	Namespace          string                           `yaml:"namespace"          json:"namespace,omitempty"`
	Language           string                           `yaml:"language"           json:"language,omitempty"`
	EntryPoint         string                           `yaml:"entryPoint"         json:"entryPoint,omitempty"`
	Version            string                           `yaml:"version"            json:"version"`
	RequiredAzdVersion string                           `yaml:"requiredAzdVersion" json:"requiredAzdVersion,omitempty"`
	Capabilities       []extensions.CapabilityType      `yaml:"capabilities"       json:"capabilities"`
	Providers          []extensions.Provider            `yaml:"providers"    json:"providers,omitempty"`
	DisplayName        string                           `yaml:"displayName"  json:"displayName"`
	Description        string                           `yaml:"description"  json:"description"`
	Usage              string                           `yaml:"usage"        json:"usage"`
	Examples           []extensions.ExtensionExample    `yaml:"examples"     json:"examples"`
	Tags               []string                         `yaml:"tags"         json:"tags,omitempty"`
	Dependencies       []extensions.ExtensionDependency `yaml:"dependencies" json:"dependencies,omitempty"`
	Platforms          map[string]map[string]any        `yaml:"platforms"    json:"platforms,omitempty"`
	Path               string                           `yaml:"-"            json:"-"`
}

func LoadExtension

func LoadExtension(extensionPath string) (*ExtensionSchema, error)

func (ExtensionSchema) MarshalYAML

func (e ExtensionSchema) MarshalYAML() (any, error)

func (*ExtensionSchema) SafeDashId

func (e *ExtensionSchema) SafeDashId() string

SafeDashId replaces all '.' in the extension ID with '-'. This is useful for creating a safe ID for use in URLs or other contexts

func (*ExtensionSchema) UnmarshalYAML

func (e *ExtensionSchema) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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