Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolVersion = 1 MagicCookieKey = "DODO_PLUGIN" MagicCookieValue = "69318785-d741-4150-ac91-8f03fa703530" )
View Source
const (
FailedPlugin = "error"
)
Variables ¶
This section is empty.
Functions ¶
func PathByName ¶
Types ¶
type CircularDependencyError ¶
func (CircularDependencyError) Error ¶
func (e CircularDependencyError) Error() string
type Dependencies ¶ added in v0.10.0
type Dependencies []ID
func DependenciesFromProto ¶ added in v0.10.0
func DependenciesFromProto(deps []*api.PluginID) Dependencies
func (Dependencies) ToProto ¶ added in v0.10.0
func (d Dependencies) ToProto() []*api.PluginID
type ID ¶ added in v0.10.0
func IDFromProto ¶ added in v0.10.0
type InvalidError ¶
func NewInvalidError ¶ added in v0.10.0
func NewInvalidError(t Type, name, msg string) InvalidError
func (InvalidError) Error ¶
func (e InvalidError) Error() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) IncludePlugins ¶
func (Manager) LoadPlugins ¶
func (m Manager) LoadPlugins()
func (Manager) RegisterPluginTypes ¶
func (Manager) ServePlugins ¶
func (Manager) UnloadPlugins ¶
func (m Manager) UnloadPlugins()
type Metadata ¶ added in v0.10.0
type Metadata struct {
ID ID
Dependencies Dependencies
Labels Labels
}
func MetadataFromProto ¶ added in v0.10.0
func MetadataFromProto(m *api.PluginMetadata) Metadata
func NewFailedPluginInfo ¶ added in v0.10.0
func NewMetadata ¶ added in v0.10.0
func (Metadata) ToProto ¶ added in v0.10.0
func (m Metadata) ToProto() *api.PluginMetadata
func (Metadata) WithDependencies ¶ added in v0.10.0
func (Metadata) WithLabels ¶ added in v0.10.0
type NotFoundError ¶
type NotFoundError struct {
PluginID ID
}
func NewNotFoundError ¶ added in v0.10.0
func NewNotFoundError(t Type, name string) NotFoundError
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type StreamConfig ¶
Click to show internal directories.
Click to hide internal directories.