Documentation
¶
Index ¶
- Constants
- Variables
- func GitHubReleaseMeans(owner, repo string, dec Decompresser) updater.MeansBuilder
- type Decompresser
- type GitHubClient
- func (c *GitHubClient) CommandText(v *version.Version) string
- func (c *GitHubClient) Installed(_ context.Context) bool
- func (c *GitHubClient) LatestTag(ctx context.Context) (*version.Version, error)
- func (c *GitHubClient) Type() updater.MeansType
- func (c *GitHubClient) Update(ctx context.Context, latest *version.Version) error
Constants ¶
View Source
const MeansTypeGitHubRelease updater.MeansType = "github-release"
Variables ¶
View Source
var ( // IsGitHubReleasedBinary means the app is installed by GitHub Releases. // The app must change this value to true to use GitHub means. IsGitHubReleasedBinary bool )
Functions ¶
func GitHubReleaseMeans ¶
func GitHubReleaseMeans(owner, repo string, dec Decompresser) updater.MeansBuilder
GitHubReleaseMeans returns updater.MeansBuilder for GitHubReleases. if dec is nil, DefaultDecompresser is used for extract binary from the compressed file.
Types ¶
type Decompresser ¶
var ( DefaultDecompresser = TarGZIPDecompresser TarDecompresser Decompresser = tarDecompresser TarGZIPDecompresser Decompresser = tarGZIPDecompresser )
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func (*GitHubClient) CommandText ¶
func (c *GitHubClient) CommandText(v *version.Version) string
func (*GitHubClient) LatestTag ¶
func (c *GitHubClient) LatestTag(ctx context.Context) (*version.Version, error)
func (*GitHubClient) Type ¶
func (c *GitHubClient) Type() updater.MeansType
Click to show internal directories.
Click to hide internal directories.