Documentation
¶
Index ¶
- func AddPluginToRegistry(plugin *PluginConfig) error
- func CloneRegistryRepo() *git.Repository
- func DownloadFile(url string, out *os.File) (*os.File, error)
- func GetLocalRegistryRepo() *git.Repository
- func GetLocalRegistryRepoPath() string
- func GetOrCloneLocalRegistryRepo() *git.Repository
- func GetPluginRegistryFilePath(pluginName string) string
- func PullLatestRegistryChanges() bool
- func RemovePluginFromRegistry(pluginName string) error
- func UnzipFile(source string, dest string)
- func WriteManifestFile(config *PluginManifestConfig) error
- type PluginConfig
- type PluginManifestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPluginToRegistry ¶
func AddPluginToRegistry(plugin *PluginConfig) error
func CloneRegistryRepo ¶
func CloneRegistryRepo() *git.Repository
func GetLocalRegistryRepo ¶
func GetLocalRegistryRepo() *git.Repository
func GetLocalRegistryRepoPath ¶
func GetLocalRegistryRepoPath() string
func GetOrCloneLocalRegistryRepo ¶
func GetOrCloneLocalRegistryRepo() *git.Repository
func PullLatestRegistryChanges ¶
func PullLatestRegistryChanges() bool
func WriteManifestFile ¶
func WriteManifestFile(config *PluginManifestConfig) error
Types ¶
type PluginConfig ¶
type PluginConfig struct { Name string Description string DownloadUrl string `yaml:"downloadUrl"` ExtractPrefix string `yaml:"extractPrefix"` Uninstall struct { Files []string Directories []string } }
func ReadPluginRegistryFile ¶
func ReadPluginRegistryFile(pluginName string) (*PluginConfig, error)
type PluginManifestConfig ¶
type PluginManifestConfig struct {
Plugins []PluginConfig
}
func ReadManifestFile ¶
func ReadManifestFile() (*PluginManifestConfig, error)
Click to show internal directories.
Click to hide internal directories.