Documentation
¶
Index ¶
- Constants
- func CachePath(app, version, url string) string
- func GetAppsDir() (string, error)
- func GetCacheDir() (string, error)
- func GetKnownBuckets() (map[string]string, error)
- func GetScoopBucketDir() (string, error)
- func GetScoopDir() (string, error)
- func GetScoopInstallationDir() (string, error)
- type App
- type Bucket
Constants ¶
const ( DetailFieldBin = "bin" DetailFieldDescription = "description" DetailFieldVersion = "version" DetailFieldNotes = "notes" )
Variables ¶
This section is empty.
Functions ¶
func GetAppsDir ¶
func GetCacheDir ¶
func GetKnownBuckets ¶
GetKnownBuckets returns the list of available "default" buckets that are available, but might have not necessarily been installed locally.
func GetScoopBucketDir ¶
func GetScoopDir ¶
func GetScoopInstallationDir ¶
Types ¶
type App ¶
type App struct {
Name string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
Notes string `json:"notes"`
Bin []string `json:"bin"`
// contains filtered or unexported fields
}
App represents an application, which may or may not be installed and may or may not be part of a bucket. "Headless" manifests are also a thing, for example when you are using an auto-generated manifest for a version that's not available anymore. In that case, scoop will lose the bucket information.
func GetAvailableApp ¶
func GetInstalledApp ¶
func GetInstalledApps ¶
func (*App) LoadDetails ¶
LoadDetails will load additional data regarding the manifest, such as description and version information. This causes IO on your drive and therefore isn't done by default.
func (App) ManifestPath ¶
type Bucket ¶
type Bucket string
func GetLocalBuckets ¶
GetLocalBuckets is an API representation of locally installed buckets.
func (Bucket) AvailableApps ¶
AvailableApps returns unloaded app manifests. You need to call App.LoadDetails on each one. This allows for optimisation by parallelisation where desired.
func (Bucket) Dir ¶
Dir is the bucket directory, which contains the subdirectory "bucket" with the manifests.
func (Bucket) ManifestDir ¶
ManifestDir is the directory path of the bucket.