db

package
v0.0.0-...-0599161 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelPreferred

func ChannelPreferred(pm, p string) bool

func GetChan

func GetChan(pm, name string) (string, error)

func GetClassic

func GetClassic(pm, name string) (bool, error)

func GetGitSetup

func GetGitSetup(pm, name string) (string, string, error)

func GetSetup

func GetSetup(pm, name string) (string, string, error)

func GitExists

func GitExists(pm, r string) (bool, error)

func IsInstalled

func IsInstalled(root, col, pm, p string) (bool, error)

func ReadPkgSlice

func ReadPkgSlice(root, col, pm string) ([]string, error)

func ReadPkgs

func ReadPkgs(root, col, pm string) (string, error)

func RecordChan

func RecordChan(pm, name, c string) error

func RecordClassic

func RecordClassic(pm, pkg string, classic bool) error

func RecordGit

func RecordGit(pm, r string) error

func RecordGitSetup

func RecordGitSetup(pm, name, u, t string) error

func RecordPkg

func RecordPkg(root, col, pm, p string) error

Add newly isntalled packages to the end of the string of packages

func RecordRepo

func RecordRepo(pm, r string) error

func RecordSetup

func RecordSetup(pm, name, r, g string) error

func RemoveChan

func RemoveChan(pm, name string) error

func RemoveClassic

func RemoveClassic(pm, p string) error

func RemoveGit

func RemoveGit(pm, p string) error

func RemovePkg

func RemovePkg(root, col, pm, p string) error

func RemoveRepo

func RemoveRepo(pm, rType, r string) error

func RepoExists

func RepoExists(pm, r string) (bool, error)

Types

type Channels

type Channels struct {
	Channel string `json:"channel"`
}

type Classics

type Classics struct {
	Classic bool `json:"classic"`
}

type Git

type Git struct {
	Url string `json:"url"`
	Tag string `json:"tag"`
}

type Packages

type Packages struct {
	Packages string `json:"packages"`
}

type Repos

type Repos struct {
	Repo string `json:"repo"`
	Gpg  string `json:"gpg"`
}

Jump to

Keyboard shortcuts

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