Documentation
¶
Index ¶
- type GithubRegistry
- func (reg *GithubRegistry) DownloadReleaseBinary(ctx context.Context, packageName string, version string, dstPath string) error
- func (reg *GithubRegistry) GetDownloadURL(repoURI string, packageName string, version string) string
- func (reg *GithubRegistry) GetLatestRelease(ctx context.Context) (string, error)
- func (reg *GithubRegistry) GetLatestReleaseInfo(ctx context.Context) (*ReleaseInfo, error)
- func (reg *GithubRegistry) GetPackageName(os string, arch string) (string, error)
- type ReleaseInfo
- type RepoRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubRegistry ¶
type GithubRegistry struct {
// contains filtered or unexported fields
}
func NewGithubRegistry ¶
func NewGithubRegistry() *GithubRegistry
func (*GithubRegistry) DownloadReleaseBinary ¶
func (*GithubRegistry) GetDownloadURL ¶
func (reg *GithubRegistry) GetDownloadURL(repoURI string, packageName string, version string) string
func (*GithubRegistry) GetLatestRelease ¶
func (reg *GithubRegistry) GetLatestRelease(ctx context.Context) (string, error)
func (*GithubRegistry) GetLatestReleaseInfo ¶
func (reg *GithubRegistry) GetLatestReleaseInfo(ctx context.Context) (*ReleaseInfo, error)
func (*GithubRegistry) GetPackageName ¶
func (reg *GithubRegistry) GetPackageName(os string, arch string) (string, error)
type ReleaseInfo ¶
type RepoRegistry ¶
type RepoRegistry interface {
GetLatestReleaseInfo(ctx context.Context) (*ReleaseInfo, error)
GetLatestRelease(ctx context.Context) (string, error)
DownloadReleaseBinary(ctx context.Context, packageName string, version string, dstPath string) error
GetPackageName(os string, arch string) (string, error)
GetDownloadURL(repoURI string, packageName string, version string) string
}
Click to show internal directories.
Click to hide internal directories.