github

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheData

type CacheData struct {
	Timestamp string                      `json:"timestamp"`
	Releases  []*github.RepositoryRelease `json:"releases"`
}

type FetchOptions

type FetchOptions struct {
	IncludeDevel bool
	Limit        int
	Force        bool
}

type GithubHelper

type GithubHelper struct {
	Client *github.Client
}

func New

func New() GithubHelper

func (*GithubHelper) DownloadRelease

func (gh *GithubHelper) DownloadRelease(version, vrsPath string) error

DownloadRelease downloads the specified release version to the given vrsPath

func (*GithubHelper) FetchAllReleases

func (gh *GithubHelper) FetchAllReleases(opts FetchOptions) ([]*github.RepositoryRelease, error)

FetchAllReleases fetches all releases from the GitHub repository

Jump to

Keyboard shortcuts

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