github

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNoMatchingTaggedVersion indicates the client repo does not currently have an
	// eligible tag for the configured cluster. Callers may treat this as a soft skip.
	ErrNoMatchingTaggedVersion = errors.New("no matching tagged version available")
)

Functions

This section is empty.

Types

type Client

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

Client represents a GitHub API client

func NewClient

func NewClient(opts Options) (c *Client, err error)

NewClient creates a new GitHub client

func (*Client) GetLatestClientVersion

func (c *Client) GetLatestClientVersion() (latestVersion *version.Version, err error)

GetLatestClientVersion gets the latest version from GitHub releases that match the given notes regex for the cluster and client

func (*Client) GetRepoURL added in v0.1.9

func (c *Client) GetRepoURL() string

func (*Client) HasTaggedVersion added in v0.1.9

func (c *Client) HasTaggedVersion(testVersion *version.Version) (hasTaggedVersion bool, err error)

HasTaggedVersion checks if a tagged version exists in the client repo

func (*Client) NormalizeToTagVersion added in v0.1.14

func (c *Client) NormalizeToTagVersion(v *version.Version) *version.Version

NormalizeToTagVersion translates the running version reported by the validator RPC into its equivalent git tag version from the cached release list. This is necessary because several clients append a client-specific suffix to their git tags that the RPC does not include, or encode the version differently from the tag.

Jito-Solana:

  • RPC reports: 4.0.0-beta.2
  • Git tag: v4.0.0-beta.2-jito (or v3.1.10-jito.1)
  • Strategy: strip -jito[.N] from each cached tag and compare to the running version

Agave:

  • RPC reports: 2.2.8-beta.1
  • Git tag: v2.2.8-beta.1 (no suffix — already matches)
  • Strategy: direct equality match against cached tags

If no match is found the running version is returned unchanged as a safe fallback.

func (*Client) ResolveFiredancerSFDPCompliantVersion added in v0.1.28

func (c *Client) ResolveFiredancerSFDPCompliantVersion(targetVersion *version.Version, minVersion *version.Version, hasMinVersion bool, maxVersion *version.Version, hasMaxVersion bool) (*version.Version, error)

ResolveFiredancerSFDPCompliantVersion selects the newest cached native Firedancer tag satisfying the full-version SFDP bounds.

func (*Client) TagNameForVersion added in v0.1.18

func (c *Client) TagNameForVersion(v *version.Version) string

type ClientRepoConfig

type ClientRepoConfig struct {
	URL                 string
	ReleaseNotesRegexes map[string]string
	ReleaseTitleRegexes map[string]string
	TagRegexes          map[string]string
}

ClientRepoConfig represents the configuration for a client source repository

type Options

type Options struct {
	Cluster string
	Client  string
}

Options represents the options for creating a new GitHub client

Jump to

Keyboard shortcuts

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