Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(basePath string) cacheinterface.PluginCache
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 GitHubConfig ¶
type GitHubConfig struct {
// Repository in format "owner/repo" (e.g., "Schumann-IT/dehydrated-api-metadata-plugin-netscaler")
Repository string `yaml:"repository"`
// Version tag to use (e.g., "v1.0.0", "latest")
// If not specified, defaults to "latest"
Version string `yaml:"version"`
// Platform to download (e.g., "linux-amd64", "darwin-amd64")
// If not specified, will be auto-detected
Platform string `yaml:"platform"`
}
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 GithubCache ¶
type GithubCache struct {
// contains filtered or unexported fields
}
func (*GithubCache) Add ¶
func (c *GithubCache) Add(name string, s any)
Click to show internal directories.
Click to hide internal directories.