pacseek

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UrlAurPackage   = "https://aur.archlinux.org/packages/%s"
	UrlAurPkgbuild  = "https://raw.githubusercontent.com/archlinux/aur/%s/PKGBUILD"
	UrlPackage      = "https://archlinux.org/packages/%s/%s/%s"
	UrlArmPackage   = "https://archlinuxarm.org/packages/%s/%s"
	UrlRepoPkgbuild = "https://gitlab.archlinux.org/archlinux/packaging/packages/%s/-/raw/main/PKGBUILD"

	UrlAurMaintainer = "https://aur.archlinux.org/packages?SeB=m&K=%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencySatisfier added in v1.8.0

type DependencySatisfier struct {
	DepType   string
	DepName   string
	Satisfier string
	Installed bool
}

type InfoRecord

type InfoRecord struct {
	CheckDepends      []string `json:"CheckDepends,omitempty"`
	Conflicts         []string `json:"Conflicts,omitempty"`
	Depends           []string `json:"Depends,omitempty"`
	Description       string   `json:"Description"`
	FirstSubmitted    int      `json:"FirstSubmitted"`
	Groups            []string `json:"Groups,omitempty"`
	ID                int      `json:"ID"`
	Keywords          []string `json:"Keywords"`
	LastModified      int      `json:"LastModified"`
	License           []string `json:"License"`
	Maintainer        string   `json:"Maintainer"`
	MakeDepends       []string `json:"MakeDepends,omitempty"`
	Name              string   `json:"Name"`
	NumVotes          int      `json:"NumVotes"`
	OptDepends        []string `json:"OptDepends,omitempty"`
	OutOfDate         int      `json:"OutOfDate"`
	PackageBase       string   `json:"PackageBase"`
	PackageBaseID     int      `json:"PackageBaseID"`
	Popularity        float64  `json:"Popularity"`
	Provides          []string `json:"Provides,omitempty"`
	Replaces          []string `json:"Replaces,omitempty"`
	RequiredBy        []string `json:"RequiredBy,omitempty"`
	URL               string   `json:"URL"`
	URLPath           string   `json:"URLPath"`
	Version           string   `json:"Version"`
	LocalVersion      string
	Source            string `json:"Source"`
	Architecture      string `json:"Architecture"`
	IsIgnored         bool
	DepsAndSatisfiers []DependencySatisfier
}

InfoRecord is a data structure for "search" API calls (results)

type Package

type Package struct {
	Name         string
	Source       string
	IsInstalled  bool
	LastModified int
	Popularity   float64
}

Package is a data structure for the package tview table

type RegexReplace added in v1.7.10

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

type SearchResults added in v1.8.0

type SearchResults struct {
	Error       string       `json:"error,omitempty"`
	Resultcount int          `json:"resultcount"`
	Results     []InfoRecord `json:"results"`
	Type        string       `json:"type"`
	Version     int          `json:"version"`
}

SearchResults is a data structure that is being sent back from the RPC service

type UI

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

UI is holding our application information and all tview components

func New

func New(conf *config.Settings, flags args.Flags) (*UI, error)

New creates a UI object and makes sure everything is initialized

func (*UI) Start

func (ps *UI) Start() error

Start runs application / event-loop

Jump to

Keyboard shortcuts

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