installed

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 8 Imported by: 0

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"`
}

type Entry

type Entry struct {
	Repo           string                 `toml:"repo"`
	Target         string                 `toml:"target"`
	InstalledAt    time.Time              `toml:"installed_at"`
	URL            string                 `toml:"url"`
	Asset          string                 `toml:"asset"`
	Tool           string                 `toml:"tool,omitempty"`
	ExtractedFiles []string               `toml:"extracted_files"`
	Options        map[string]interface{} `toml:"options"`
	Version        string                 `toml:"version,omitempty"`
	Tag            string                 `toml:"tag,omitempty"`
	ReleaseDate    time.Time              `toml:"release_date,omitempty"`
}

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