installed

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRepoName

func NormalizeRepoName(target string) string

Types

type Config

type Config struct {
	Installed map[string]Entry `toml:"installed" mapstructure:"installed"`
}

type Entry

type Entry struct {
	Repo           string         `toml:"repo" mapstructure:"repo"`
	Target         string         `toml:"target" mapstructure:"target"`
	InstalledAt    time.Time      `toml:"installed_at" mapstructure:"installed_at"`
	UpdatedAt      time.Time      `toml:"updated_at,omitempty" mapstructure:"updated_at"`
	URL            string         `toml:"url" mapstructure:"url"`
	Asset          string         `toml:"asset" mapstructure:"asset"`
	AssetID        int64          `toml:"asset_id,omitempty" mapstructure:"asset_id"`
	AssetSize      int64          `toml:"asset_size,omitempty" mapstructure:"asset_size"`
	AssetUpdatedAt time.Time      `toml:"asset_updated_at,omitempty" mapstructure:"asset_updated_at"`
	AssetDigest    string         `toml:"asset_digest,omitempty" mapstructure:"asset_digest"`
	Desc           string         `toml:"desc,omitempty" mapstructure:"desc"`
	Homepage       string         `toml:"homepage,omitempty" mapstructure:"homepage"`
	RepoURL        string         `toml:"repo_url,omitempty" mapstructure:"repo_url"`
	Tool           string         `toml:"tool,omitempty" mapstructure:"tool"`
	ExtractedFiles []string       `toml:"extracted_files" mapstructure:"extracted_files"`
	Options        map[string]any `toml:"options" mapstructure:"options"`
	Version        string         `toml:"version,omitempty" mapstructure:"version"`
	Tag            string         `toml:"tag,omitempty" mapstructure:"tag"`
	TagPolicy      string         `toml:"tag_policy,omitempty" mapstructure:"tag_policy"`
	ReleaseDate    time.Time      `toml:"release_date,omitempty" mapstructure:"release_date"`
	IsGUI          bool           `toml:"is_gui,omitempty" mapstructure:"is_gui"`
	InstallMode    string         `toml:"install_mode,omitempty" mapstructure:"install_mode"`
}

type Options

type Options struct {
	HomeDir   string
	GOOS      string
	LookupEnv func(string) (string, bool)
}

type Store

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

func DefaultStore

func DefaultStore() (*Store, error)

func NewStore

func NewStore(opts Options) *Store

func (*Store) Load

func (s *Store) Load() (*Config, error)

func (*Store) Path

func (s *Store) Path() string

func (*Store) Record

func (s *Store) Record(target string, entry Entry) error

func (*Store) Remove

func (s *Store) Remove(target string) error

func (*Store) Save

func (s *Store) Save(config *Config) error

Jump to

Keyboard shortcuts

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