bucket

package
v0.0.0-...-72dcd91 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownBuckets = map[string]string{
	"main":         "https://github.com/ScoopInstaller/Main",
	"extras":       "https://github.com/ScoopInstaller/Extras",
	"versions":     "https://github.com/ScoopInstaller/Versions",
	"nirsoft":      "https://github.com/kodybrown/scoop-nirsoft",
	"sysinternals": "https://github.com/niheaven/scoop-sysinternals",
	"php":          "https://github.com/ScoopInstaller/PHP",
	"nerd-fonts":   "https://github.com/matthewjberger/scoop-nerd-fonts",
	"nonportable":  "https://github.com/ScoopInstaller/Nonportable",
	"java":         "https://github.com/ScoopInstaller/Java",
	"games":        "https://github.com/Calinou/scoop-games",
}

list of known buckets

Functions

func Exists

func Exists(name string) bool

wether a bucket with that name exists

func GetPath

func GetPath(name string) string

get the path to a bucket

Types

type BucketDir

type BucketDir struct {
	Name    string
	Path    string
	Source  string
	LastMod time.Time
}

data recovered from a bucket directory

func List

func List() ([]BucketDir, error)

list all local buckets

type ManifestFile

type ManifestFile struct {
	Name string
	Path string
}

func Walk

func Walk(bucket string) []ManifestFile

recursively walk a bucket dir and extract all of its manifest file names and their paths

Jump to

Keyboard shortcuts

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