client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 5 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
}

func NewClient

func NewClient(options ...Option) (*Client, error)

func NewClientMust added in v0.3.0

func NewClientMust(options ...Option) *Client

func (*Client) BestKmod

func (c *Client) BestKmod(unameR string) (string, error)

BestKmod queries the API for the best package to install for a given kernel. It takes the desired kernel version (output of `uname -r` or something compatible) and returns the package file name of the best fitting kmod.

type Option

type Option func(*Client) error

func WithBaseURL

func WithBaseURL(baseURL *url.URL) Option

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

func WithOSReleasePath

func WithOSReleasePath(osReleasePath string) Option

Jump to

Keyboard shortcuts

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