Documentation ¶
Index ¶
- Constants
- Variables
- type Builder
- func (b *Builder) Author(author string) *Builder
- func (b *Builder) Build() (*Plugin, error)
- func (b *Builder) Description(description i18n.String) *Builder
- func (b *Builder) Extensions(extensions []*Extension) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) MustBuild() *Plugin
- func (b *Builder) Name(name i18n.String) *Builder
- func (b *Builder) RepositoryURL(repositoryURL string) *Builder
- func (b *Builder) Schema(schema *PropertySchemaID) *Builder
- type Extension
- func (w *Extension) Clone() *Extension
- func (w *Extension) Description() i18n.String
- func (w *Extension) ID() ExtensionID
- func (w *Extension) Icon() string
- func (w *Extension) Name() i18n.String
- func (w *Extension) Rename(name i18n.String)
- func (w *Extension) Schema() PropertySchemaID
- func (w *Extension) SetDescription(des i18n.String)
- func (w *Extension) SingleOnly() bool
- func (w *Extension) Type() ExtensionType
- func (w *Extension) Visualizer() visualizer.Visualizer
- func (w *Extension) WidgetLayout() *WidgetLayout
- type ExtensionBuilder
- func (b *ExtensionBuilder) Build() (*Extension, error)
- func (b *ExtensionBuilder) Description(description i18n.String) *ExtensionBuilder
- func (b *ExtensionBuilder) ID(id ExtensionID) *ExtensionBuilder
- func (b *ExtensionBuilder) Icon(icon string) *ExtensionBuilder
- func (b *ExtensionBuilder) MustBuild() *Extension
- func (b *ExtensionBuilder) Name(name i18n.String) *ExtensionBuilder
- func (b *ExtensionBuilder) Schema(schema PropertySchemaID) *ExtensionBuilder
- func (b *ExtensionBuilder) SingleOnly(singleOnly bool) *ExtensionBuilder
- func (b *ExtensionBuilder) System(s bool) *ExtensionBuilder
- func (b *ExtensionBuilder) Type(extensionType ExtensionType) *ExtensionBuilder
- func (b *ExtensionBuilder) Visualizer(visualizer visualizer.Visualizer) *ExtensionBuilder
- func (b *ExtensionBuilder) WidgetLayout(widgetLayout *WidgetLayout) *ExtensionBuilder
- type ExtensionID
- type ExtensionType
- type ID
- type List
- type Loader
- type Map
- type Metadata
- type Plugin
- func (p *Plugin) Author() string
- func (p *Plugin) Clone() *Plugin
- func (p *Plugin) Description() i18n.String
- func (p *Plugin) Extension(id ExtensionID) *Extension
- func (p *Plugin) Extensions() []*Extension
- func (p *Plugin) ID() ID
- func (p *Plugin) Name() i18n.String
- func (p *Plugin) PropertySchemas() []PropertySchemaID
- func (p *Plugin) RepositoryURL() string
- func (p *Plugin) Scene() *SceneID
- func (p *Plugin) Schema() *PropertySchemaID
- func (p *Plugin) Version() semver.Version
- type PropertySchemaID
- type SceneID
- type WidgetAreaType
- type WidgetLayout
- func (l *WidgetLayout) Clone() *WidgetLayout
- func (l WidgetLayout) DefaultLocation() *WidgetLocation
- func (l WidgetLayout) Extendable(loc WidgetLocation) bool
- func (l WidgetLayout) Extended() bool
- func (l WidgetLayout) Floating() bool
- func (l WidgetLayout) HorizontallyExtendable() bool
- func (l WidgetLayout) Ref() *WidgetLayout
- func (l WidgetLayout) VerticallyExtendable() bool
- type WidgetLocation
- type WidgetSectionType
- type WidgetZoneType
Constants ¶
View Source
const ( WidgetZoneInner WidgetZoneType = "inner" WidgetZoneOuter WidgetZoneType = "outer" WidgetSectionLeft WidgetSectionType = "left" WidgetSectionCenter WidgetSectionType = "center" WidgetSectionRight WidgetSectionType = "right" WidgetAreaTop WidgetAreaType = "top" WidgetAreaMiddle WidgetAreaType = "middle" WidgetAreaBottom WidgetAreaType = "bottom" )
Variables ¶
View Source
var ( ErrPluginExtensionDuplicated error = errors.New("plugin extension duplicated") ExtensionTypePrimitive ExtensionType = "primitive" ExtensionTypeWidget ExtensionType = "widget" ExtensionTypeBlock ExtensionType = "block" ExtensionTypeVisualizer ExtensionType = "visualizer" ExtensionTypeInfobox ExtensionType = "infobox" ExtensionTypeCluster ExtensionType = "cluster" )
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.PluginIDFrom
View Source
var IDFromRef = id.PluginIDFromRef
View Source
var MustID = id.MustPluginID
View Source
var MustPropertySchemaID = id.MustPropertySchemaID
View Source
var MustSceneID = id.MustSceneID
View Source
var NewID = id.NewPluginID
View Source
var NewPropertySchemaID = id.NewPropertySchemaID
View Source
var NewSceneID = id.NewSceneID
View Source
var OfficialPluginID = id.OfficialPluginID
View Source
var PropertySchemaIDFrom = id.PropertySchemaIDFrom
View Source
var PropertySchemaIDFromRef = id.PropertySchemaIDFromRef
View Source
var SceneIDFrom = id.SceneIDFrom
View Source
var SceneIDFromRef = id.SceneIDFromRef
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Extensions ¶
func (*Builder) RepositoryURL ¶
func (*Builder) Schema ¶
func (b *Builder) Schema(schema *PropertySchemaID) *Builder
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
func (*Extension) Description ¶
func (*Extension) ID ¶
func (w *Extension) ID() ExtensionID
func (*Extension) Schema ¶
func (w *Extension) Schema() PropertySchemaID
func (*Extension) SetDescription ¶
func (*Extension) SingleOnly ¶
func (*Extension) Type ¶
func (w *Extension) Type() ExtensionType
func (*Extension) Visualizer ¶
func (w *Extension) Visualizer() visualizer.Visualizer
func (*Extension) WidgetLayout ¶
func (w *Extension) WidgetLayout() *WidgetLayout
type ExtensionBuilder ¶
type ExtensionBuilder struct {
// contains filtered or unexported fields
}
func NewExtension ¶
func NewExtension() *ExtensionBuilder
func (*ExtensionBuilder) Build ¶
func (b *ExtensionBuilder) Build() (*Extension, error)
func (*ExtensionBuilder) Description ¶
func (b *ExtensionBuilder) Description(description i18n.String) *ExtensionBuilder
func (*ExtensionBuilder) ID ¶
func (b *ExtensionBuilder) ID(id ExtensionID) *ExtensionBuilder
func (*ExtensionBuilder) Icon ¶
func (b *ExtensionBuilder) Icon(icon string) *ExtensionBuilder
func (*ExtensionBuilder) MustBuild ¶
func (b *ExtensionBuilder) MustBuild() *Extension
func (*ExtensionBuilder) Name ¶
func (b *ExtensionBuilder) Name(name i18n.String) *ExtensionBuilder
func (*ExtensionBuilder) Schema ¶
func (b *ExtensionBuilder) Schema(schema PropertySchemaID) *ExtensionBuilder
func (*ExtensionBuilder) SingleOnly ¶
func (b *ExtensionBuilder) SingleOnly(singleOnly bool) *ExtensionBuilder
func (*ExtensionBuilder) System ¶
func (b *ExtensionBuilder) System(s bool) *ExtensionBuilder
func (*ExtensionBuilder) Type ¶
func (b *ExtensionBuilder) Type(extensionType ExtensionType) *ExtensionBuilder
func (*ExtensionBuilder) Visualizer ¶
func (b *ExtensionBuilder) Visualizer(visualizer visualizer.Visualizer) *ExtensionBuilder
func (*ExtensionBuilder) WidgetLayout ¶
func (b *ExtensionBuilder) WidgetLayout(widgetLayout *WidgetLayout) *ExtensionBuilder
type ExtensionID ¶ added in v0.4.0
type ExtensionID = id.PluginExtensionID
type ExtensionType ¶
type ExtensionType string
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Description ¶
func (*Plugin) Extension ¶
func (p *Plugin) Extension(id ExtensionID) *Extension
func (*Plugin) Extensions ¶
func (*Plugin) PropertySchemas ¶
func (p *Plugin) PropertySchemas() []PropertySchemaID
func (*Plugin) RepositoryURL ¶
func (*Plugin) Schema ¶
func (p *Plugin) Schema() *PropertySchemaID
type PropertySchemaID ¶ added in v0.4.0
type PropertySchemaID = id.PropertySchemaID
type WidgetAreaType ¶
type WidgetAreaType string
type WidgetLayout ¶
type WidgetLayout struct {
// contains filtered or unexported fields
}
func NewWidgetLayout ¶
func NewWidgetLayout(horizontallyExtendable, verticallyExtendable, extended, floating bool, defaultLocation *WidgetLocation) WidgetLayout
func (*WidgetLayout) Clone ¶ added in v0.4.0
func (l *WidgetLayout) Clone() *WidgetLayout
func (WidgetLayout) DefaultLocation ¶
func (l WidgetLayout) DefaultLocation() *WidgetLocation
func (WidgetLayout) Extendable ¶
func (l WidgetLayout) Extendable(loc WidgetLocation) bool
func (WidgetLayout) Extended ¶
func (l WidgetLayout) Extended() bool
func (WidgetLayout) Floating ¶
func (l WidgetLayout) Floating() bool
func (WidgetLayout) HorizontallyExtendable ¶
func (l WidgetLayout) HorizontallyExtendable() bool
func (WidgetLayout) Ref ¶
func (l WidgetLayout) Ref() *WidgetLayout
func (WidgetLayout) VerticallyExtendable ¶
func (l WidgetLayout) VerticallyExtendable() bool
type WidgetLocation ¶
type WidgetLocation struct { Zone WidgetZoneType Section WidgetSectionType Area WidgetAreaType }
func (*WidgetLocation) Clone ¶ added in v0.4.0
func (l *WidgetLocation) Clone() *WidgetLocation
func (WidgetLocation) Horizontal ¶
func (l WidgetLocation) Horizontal() bool
func (WidgetLocation) Vertical ¶
func (l WidgetLocation) Vertical() bool
type WidgetSectionType ¶
type WidgetSectionType string
type WidgetZoneType ¶
type WidgetZoneType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.