Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL *url.URL
CmdName string
HTTPClient HTTPDoer
Headers map[string]string // Optional headers to add to each request
}
Client holds the base URL, command name, allows custom HTTP client, and optional headers.
func (*Client) FetchRelease ¶
func (c *Client) FetchRelease(m Manifest) (FileReader, error)
FetchRelease fetches the release file for the given version and platform.
type FileReader ¶
type FileReader struct {
FileName string
// contains filtered or unexported fields
}
func (FileReader) Close ¶
func (f FileReader) Close() error
type Manifest ¶
type Option ¶
type Option func(*Client)
Option is a functional option for configuring Client.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client for the Client.
func WithHeaders ¶
WithHeaders sets custom headers for the Client.
Click to show internal directories.
Click to hide internal directories.