instances
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func Create(dataDir, packagesDir, userPackagesDir, downloadsDir *paths.Path, ...) (*rpc.Instance, error)
- func Delete(inst *rpc.Instance) bool
- func GetLibrariesIndex(inst *rpc.Instance) (*librariesindex.Index, error)
- func GetLibraryManager(inst *rpc.Instance) (*librariesmanager.LibrariesManager, error)
- func GetLibraryManagerExplorer(inst *rpc.Instance) (*librariesmanager.Explorer, func(), error)
- func GetLibraryManagerInstaller(inst *rpc.Instance) (*librariesmanager.Installer, func(), error)
- func GetPackageManager(inst *rpc.Instance) (*packagemanager.PackageManager, error)
- func GetPackageManagerExplorer(req *rpc.Instance) (explorer *packagemanager.Explorer, release func(), _err error)
- func IsValid(inst *rpc.Instance) bool
- func SetLibrariesIndex(inst *rpc.Instance, li *librariesindex.Index) error
- func SetLibraryManager(inst *rpc.Instance, lm *librariesmanager.LibrariesManager) bool
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreate¶
func Create(dataDir, packagesDir, userPackagesDir, downloadsDir *paths.Path, extraUserAgentstring, downloaderConfig downloader.Config) (*rpc.Instance,error)
Create a new *rpc.Instance ready to be initialized
funcGetLibrariesIndex¶added inv1.0.0
func GetLibrariesIndex(inst *rpc.Instance) (*librariesindex.Index,error)
GetLibrariesIndex returns the library index for the given instance.
funcGetLibraryManager¶
func GetLibraryManager(inst *rpc.Instance) (*librariesmanager.LibrariesManager,error)
GetLibraryManager returns the library manager for the given instance.
funcGetLibraryManagerExplorer¶added inv1.0.0
func GetLibraryManagerExplorer(inst *rpc.Instance) (*librariesmanager.Explorer, func(),error)
GetLibraryManagerExplorer returns the library manager Explorer for the given instance.
funcGetLibraryManagerInstaller¶added inv1.0.0
func GetLibraryManagerInstaller(inst *rpc.Instance) (*librariesmanager.Installer, func(),error)
GetLibraryManagerInstaller returns the library manager Installer for the given instance.
funcGetPackageManager¶
func GetPackageManager(inst *rpc.Instance) (*packagemanager.PackageManager,error)
GetPackageManager returns a PackageManager. If the package manager is not found(because the instance is invalid or has been destroyed), nil is returned.Deprecated: use GetPackageManagerExplorer instead.
funcGetPackageManagerExplorer¶
func GetPackageManagerExplorer(req *rpc.Instance) (explorer *packagemanager.Explorer, release func(), _errerror)
GetPackageManagerExplorer returns a new package manager Explorer. Theexplorer holds a read lock on the underlying PackageManager and it shouldbe released by calling the returned "release" function.
funcSetLibrariesIndex¶added inv1.0.0
func SetLibrariesIndex(inst *rpc.Instance, li *librariesindex.Index)error
SetLibrariesIndex sets the library index for the given instance.
funcSetLibraryManager¶
func SetLibraryManager(inst *rpc.Instance, lm *librariesmanager.LibrariesManager)bool
SetLibraryManager sets the library manager for the given instance.
Types¶
This section is empty.