registry

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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(ctx context.Context) *GithubRegistry

func (*GithubRegistry) DownloadReleaseBinary

func (reg *GithubRegistry) DownloadReleaseBinary(
	packageName string,
	version string,
	dstPath string,
) error

func (*GithubRegistry) GetDownloadURL

func (reg *GithubRegistry) GetDownloadURL(repoURI string, packageName string, version string) string

func (*GithubRegistry) GetLatestRelease

func (reg *GithubRegistry) GetLatestRelease() (string, error)

func (*GithubRegistry) GetPackageName

func (reg *GithubRegistry) GetPackageName(os string, arch string) (string, error)

type RepoRegistry

type RepoRegistry interface {
	GetLatestRelease() (string, error)
	DownloadReleaseBinary(packageName string, version string, dstPath string) error
	GetPackageName(os string, arch string) (string, error)
	GetDownloadURL(repoURI string, packageName string, version string) string
}

Jump to

Keyboard shortcuts

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