pkg

package
v0.0.0-...-abc809d Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url string, name string, dirs UserDirectories, vsion string, cache cache.ModuleCache, count int, c int) error

func InstallPackage

func InstallPackage(mcache cache.ModuleCache, dirs UserDirectories, data string) error

func InstallPackagesSynchronously

func InstallPackagesSynchronously(packages []string, Mcache cache.ModuleCache, rcache cache.RequestData, count int, cwd string, homeDir string) error

Types

type DependenciesField

type DependenciesField struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

func InstallDeps

func InstallDeps(data string, name string, dirs UserDirectories, cache cache.ModuleCache) []DependenciesField

type Deps

type Deps struct {
	Name    string
	Version string
}

type DevDependenciesField

type DevDependenciesField DependenciesField

type InstalledMods

type InstalledMods struct {
	Dependencies   []DependenciesField
	DependencyPkgs []DependenciesField
	Packages       []Packages
}

type LockFile

type LockFile struct {
	LockVersion     string                 `yaml:"lockFileVersion"`
	Dependencies    []DependenciesField    `yaml:"dependencies"`
	DevDependencies []DevDependenciesField `yaml:"devDependencies"`
	Packages        []Packages             `yaml:"packages"`
}

type Packages

type Packages struct {
	Name         string              `yaml:"name"`
	Version      string              `yaml:"version"`
	Integrity    string              `yaml:"integrity"`
	Dev          bool                `yaml:"dev"`
	Engine       string              `yaml:"engine"`
	Dependencies []DependenciesField `yaml:"dependencies"`
	Resolved     string              `yaml:"resolved"`
}

type UserDirectories

type UserDirectories struct {
	CWD            string
	HomeDir        string
	ModuleCacheDir string
}

Jump to

Keyboard shortcuts

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