extension

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigField

type ConfigField struct {
	Type    ConfigFieldType           `json:"type"`
	Name    string                    `json:"name"`
	Options []ConfigFieldSelectOption `json:"options"`
	Default string                    `json:"default"`
}

ConfigField represents a field in an extension's configuration. The fields are defined in the manifest file.

type ConfigFieldSelectOption

type ConfigFieldSelectOption struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type ConfigFieldType

type ConfigFieldType string
const (
	ConfigFieldTypeText   ConfigFieldType = "text"
	ConfigFieldTypeSwitch ConfigFieldType = "switch"
	ConfigFieldTypeSelect ConfigFieldType = "select"
	ConfigFieldTypeNumber ConfigFieldType = "number"
)

type ConfigFieldValueValidator

type ConfigFieldValueValidator func(value string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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