sfdp

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 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 Client

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

Client represents an SFDP API client

func NewClient

func NewClient(opts Options) *Client

NewClient creates a new SFDP client

func (*Client) GetLatestRequirements

func (c *Client) GetLatestRequirements() (latestRequirements *Requirements, err error)

GetLatestRequirements gets version requirements from SFDP for a given cluster

type Options

type Options struct {
	Cluster string
	Client  string
}

Options represents the options for creating a new SFDP client

type Requirements

type Requirements struct {
	Epoch                      int    `json:"epoch"`
	Cluster                    string `json:"cluster"`
	AgaveMinVersion            string `json:"agave_min_version"`
	AgaveMaxVersion            string `json:"agave_max_version"`
	FiredancerMinVersion       string `json:"firedancer_min_version"`
	FiredancerMaxVersion       string `json:"firedancer_max_version"`
	InheritedFromPreviousEpoch bool   `json:"inherited_from_previous_epoch"`

	Client        string
	Constraints   version.Constraints
	MaxVersion    *version.Version
	MinVersion    *version.Version
	HasMaxVersion bool
	HasMinVersion bool
}

RequiredVersions represents an SFDP version constraints

func (*Requirements) SetClient

func (r *Requirements) SetClient(client string) (err error)

SetClient sets the client and limits for it

type RequirementsResponse

type RequirementsResponse struct {
	Error string         `json:"error,omitempty"`
	Data  []Requirements `json:"data"`
}

RequirementsResponse represents the response from the SFDP API

Jump to

Keyboard shortcuts

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