Documentation
¶
Index ¶
- type GitHubAsset
- type GitHubRelease
- type Manager
- func (m *Manager) Cleanup(maxAge time.Duration) error
- func (m *Manager) DownloadGitHubPlugin(configMap map[string]any) (string, error)
- func (m *Manager) GenerateCachePath(source, org, pluginName, version, platform string) string
- func (m *Manager) GetCacheDir() string
- func (m *Manager) GetPluginPath(pluginConfig config.PluginConfig) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubAsset ¶
type GitHubAsset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
GitHubAsset represents a release asset
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
Assets []GitHubAsset `json:"assets"`
PublishedAt time.Time `json:"published_at"`
}
GitHubRelease represents a GitHub release
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles downloading and managing plugins from GitHub
func NewManager ¶
NewManager creates a new plugin manager
func (*Manager) DownloadGitHubPlugin ¶
DownloadGitHubPlugin downloads a plugin from GitHub using config map
func (*Manager) GenerateCachePath ¶
GenerateCachePath generates the cache path using the new directory structure (public method)
func (*Manager) GetCacheDir ¶
GetCacheDir returns the cache directory path
func (*Manager) GetPluginPath ¶
func (m *Manager) GetPluginPath(pluginConfig config.PluginConfig) (string, error)
GetPluginPath returns the path to a plugin executable If it's a GitHub plugin, it will download and cache it
Click to show internal directories.
Click to hide internal directories.