brewapi

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 8 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 {
	HTTPClient *http.Client
	APIDomain  string
}

Client makes API requests.

func NewClient

func NewClient(apiDomain string) *Client

NewClient initializes a default client.

func (Client) FetchCasksV2

func (client Client) FetchCasksV2(ctx context.Context) (io.ReadCloser, error)

FetchCasksV2 fetches the v2 API data for all existing casks.

func (Client) FetchCoreV3

func (client Client) FetchCoreV3(ctx context.Context) (io.ReadCloser, error)

FetchCoreV3 fetches the v3 API data for the homebrew/core tap.

func (Client) FetchFormulaV1

func (client Client) FetchFormulaV1(ctx context.Context, name string) (io.ReadCloser, error)

FetchFormulaV1 fetches the v1 API data for the named formula. If name does not exist, this function will fail.

func (Client) FetchFormulaeV1

func (client Client) FetchFormulaeV1(ctx context.Context) (io.ReadCloser, error)

FetchFormulaeV1 fetches the v1 API data for all existing formulae.

func (Client) FetchFormulaeV2

func (client Client) FetchFormulaeV2(ctx context.Context) (io.ReadCloser, error)

FetchFormulaeV2 fetches the v2 API data for all existing formulae.

Jump to

Keyboard shortcuts

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