github

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handles GitHub API interactions.

func NewClient

func NewClient() *Client

NewClient creates a new GitHub client.

func (*Client) DownloadComponent

func (c *Client) DownloadComponent(name, tagPrefix, version, archiveName, binaryName string, platform paths.Platform) error

DownloadComponent downloads and installs a component.

func (*Client) GetLatestVersion

func (c *Client) GetLatestVersion(tagPrefix string) (string, error)

GetLatestVersion fetches the latest version for a component.

type Release

type Release struct {
	TagName string `json:"tag_name"`
}

Release represents a GitHub release.

Jump to

Keyboard shortcuts

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