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 represents a GitHub API client
func (*Client) GetLatestClientVersion ¶
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 (*Client) HasTaggedVersion ¶ added in v0.1.9
HasTaggedVersion checks if a tagged version exists in the client repo
func (*Client) NormalizeToTagVersion ¶ added in v0.1.14
NormalizeToTagVersion translates a running version to its equivalent tag version.
Firedancer reports its version differently depending on the source:
- GitHub tags use EPOCH.RELEASE.FEATURESET (e.g. v0.902.40002)
- Solana RPC getVersion solana-core field may return EPOCH.RELEASE.0 (e.g. 0.902.0) when the feature-set is not embedded in the version string
- After firedancer PR #8945 the binary/RPC may report EPOCH.COMMITCOUNT.FEATURESET (e.g. 0.33670.40002) where COMMITCOUNT differs from RELEASE
To bridge these representations we try two matching strategies in order:
- Feature-set match (PATCH component): works when the running version embeds the feature-set (PATCH > 0), e.g. 0.33670.40002 → v0.902.40002
- MAJOR.MINOR match: works when the running version reports PATCH as 0, e.g. 0.902.0 → v0.902.40002
For all other clients the version is returned unchanged.
Click to show internal directories.
Click to hide internal directories.