github

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 14 Imported by: 0

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)

func (*GithubCache) Clean added in v0.3.0

func (c *GithubCache) Clean()

func (*GithubCache) Path

func (c *GithubCache) Path(name string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL