v2

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package v2 defines data types for v2 of the formulae.brew.sh JSON API and some utility functions for working with the data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cask

type Cask struct {
	Token              string         `json:"token"`
	FullToken          string         `json:"full_token"`
	OldTokens          []string       `json:"old_tokens"`
	Tap                string         `json:"tap"`
	Name               []string       `json:"name"`
	Desc               string         `json:"desc"`
	Homepage           string         `json:"homepage"`
	URL                string         `json:"url"`
	URLSpecs           map[string]any `json:"url_specs"`
	Appcast            any            `json:"appcast"`
	Version            string         `json:"version"`
	Installed          string         `json:"installed"`
	InstalledTime      string         `json:"installed_time"`
	BundleVersion      string         `json:"bundle_version"`
	BundleShortVersion string         `json:"bundle_short_version"`
	Outdated           bool           `json:"outdated"`
	Sha256             string         `json:"sha256"`
	Artifacts          []struct {
		App []string `json:"app,omitempty"`
		Zap []struct {
			Trash []string `json:"trash,omitempty"`
		} `json:"zap,omitempty"`
	} `json:"artifacts"`
	Caveats   *string `json:"caveats"`
	DependsOn struct {
		MacOS map[string][]string `json:"macos"`
	} `json:"depends_on"`
	ConflictsWith struct {
		Cask []string `json:"cask"`
	} `json:"conflicts_with"`
	Container          any     `json:"container"`
	AutoUpdates        bool    `json:"auto_updates"`
	Deprecated         bool    `json:"deprecated"`
	DeprecationDate    *string `json:"deprecation_date"`
	DeprecationReason  *string `json:"deprecation_reason"`
	Disabled           bool    `json:"disabled"`
	DisableDate        *string `json:"disable_date"`
	DisableReason      *string `json:"disable_reason"`
	TapGitHead         string
	Languages          []string `json:"languages"`
	RubySourcePath     string   `json:"ruby_source_path"`
	RubySourceChecksum struct {
		Sha256 string `json:"sha256"`
	} `json:"ruby_source_checksum"`
}

Cask represents a cask entry.

type Formula

type Formula brewv1.Info

Formula represents a formula entry.

type Tap

type Tap struct {
	Formulae []*Formula `json:"formulae"`
	Casks    []*Cask    `json:"casks"`
}

Tap represents the v2 Homebrew API.

Jump to

Keyboard shortcuts

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