Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitspacePlugin ¶
type PluginConfig ¶
type PluginConfig struct { Metadata PluginMetadata `toml:"metadata"` Menu struct { Title string `toml:"title"` Key string `toml:"key"` } `toml:"menu"` }
PluginConfig contains the configuration for the plugin
func ParsePluginConfig ¶
func ParsePluginConfig(pluginDir string) (PluginConfig, error)
type PluginManifest ¶
type PluginManifest struct { Plugin struct { Name string `toml:"name"` Version string `toml:"version"` Description string `toml:"description,omitempty"` Author string `toml:"author,omitempty"` Sources []struct { Path string `toml:"path"` EntryPoint string `toml:"entry_point"` Repository struct { Type string `toml:"type,omitempty"` URL string `toml:"url,omitempty"` Branch string `toml:"branch,omitempty"` } `toml:"repository,omitempty"` } `toml:"sources"` } `toml:"plugin"` }
Click to show internal directories.
Click to hide internal directories.