Documentation
¶
Index ¶
- func DownloadFile(url, dest string) error
- func ExtractArchive(archive, dest string) error
- func PluginInfoExists(pluginDir string) bool
- func RunGitLFS(repoDir string, args ...string) error
- type CompileResult
- type Context
- type DiscoveredPlugin
- type ExtensionRepo
- type Info
- type LoadedPlugin
- type MainFunc
- type Manager
- func (m *Manager) AddRepo(name, gitURL string) error
- func (m *Manager) CompilePlugin(pluginDir string, force bool) (string, error)
- func (m *Manager) DiscoverPlugins() ([]DiscoveredPlugin, error)
- func (m *Manager) ListRepos() []ExtensionRepo
- func (m *Manager) RemoveRepo(name string) error
- func (m *Manager) UpdateRepo(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶ added in v0.0.11
func ExtractArchive ¶ added in v0.0.11
func PluginInfoExists ¶ added in v0.0.11
Types ¶
type CompileResult ¶
type CompileResult struct {
gocompile.CompileResult
PluginDir string
PluginName string
}
func Compile ¶
func Compile(pluginDir string, force bool) CompileResult
type Context ¶ added in v0.0.11
type Context struct {
VMakeDir string
PluginDir string
CommandName string
AddSubCommand func(cmd *cobra.Command)
RegisterToolchain func(name string, tc *toolchain.Toolchain)
GetToolchains func() map[string]*toolchain.Toolchain
SetOnMissing func(onMissing func(name string) (*toolchain.Toolchain, error))
AddGlobalFlags func(cflags, cxxflags []string)
DownloadFile func(url, dest string) error
ExtractArchive func(archive, dest string) error
RunGitLFS func(repoDir string, args ...string) error
}
type DiscoveredPlugin ¶ added in v0.0.11
type ExtensionRepo ¶ added in v0.0.11
type Info ¶ added in v0.0.11
type Info struct {
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Entry string `json:"entry"`
Enabled bool `json:"enabled"`
}
func LoadPluginInfo ¶ added in v0.0.11
type LoadedPlugin ¶
func Load ¶
func Load(soPath string) (*LoadedPlugin, error)
type Manager ¶ added in v0.0.11
func NewManager ¶ added in v0.0.11
func (*Manager) CompilePlugin ¶ added in v0.0.11
func (*Manager) DiscoverPlugins ¶ added in v0.0.11
func (m *Manager) DiscoverPlugins() ([]DiscoveredPlugin, error)
func (*Manager) ListRepos ¶ added in v0.0.11
func (m *Manager) ListRepos() []ExtensionRepo
func (*Manager) RemoveRepo ¶ added in v0.0.11
func (*Manager) UpdateRepo ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.