plugin

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string
const (
	KindVariable        Kind = "Variable"
	KindDatasource      Kind = "Datasource"
	KindPanel           Kind = "Panel"
	KindTimeSeriesQuery Kind = "TimeSeriesQuery"
	KindTraceQuery      Kind = "TraceQuery"
	KindProfileQuery    Kind = "ProfileQuery"
	KindLogQuery        Kind = "LogQuery"
	KindQuery           Kind = "Query"
	KindExplore         Kind = "Explore"
)

func (Kind) IsQuery added in v0.52.0

func (k Kind) IsQuery() bool

type ModuleMetadata

type ModuleMetadata struct {
	Name    string `json:"name" yaml:"name"`
	Version string `json:"version" yaml:"version"`
}

type ModuleSpec

type ModuleSpec struct {
	SchemasPath string   `json:"schemasPath" yaml:"schemasPath"`
	ModuleName  string   `json:"moduleName,omitempty" yaml:"moduleName,omitempty"`
	ModuleOrg   string   `json:"moduleOrg,omitempty" yaml:"moduleOrg,omitempty"`
	Plugins     []Plugin `json:"plugins" yaml:"plugins"`
}

func (*ModuleSpec) UnmarshalJSON

func (m *ModuleSpec) UnmarshalJSON(data []byte) error

func (*ModuleSpec) UnmarshalYAML

func (m *ModuleSpec) UnmarshalYAML(unmarshal func(any) error) error

type ModuleStatus

type ModuleStatus struct {
	IsLoaded bool   `json:"isLoaded" yaml:"isLoaded"`
	InDev    bool   `json:"inDev" yaml:"inDev"`
	Error    string `json:"error,omitempty" yaml:"error,omitempty"`
}

type Plugin

type Plugin struct {
	Kind Kind `json:"kind" yaml:"kind"`
	Spec Spec `json:"spec" yaml:"spec"`
}

func (*Plugin) UnmarshalJSON

func (p *Plugin) UnmarshalJSON(data []byte) error

func (*Plugin) UnmarshalYAML

func (p *Plugin) UnmarshalYAML(unmarshal func(any) error) error

type Spec

type Spec struct {
	Display *common.Display `json:"display" yaml:"display"`
	Name    string          `json:"name" yaml:"name"`
}

Jump to

Keyboard shortcuts

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