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(extraUserAgent ...string) (*rpc.Instance, error)
- func Delete(inst *rpc.Instance) bool
- func GetLibraryManager(inst *rpc.Instance) *librariesmanager.LibrariesManager
- func GetPackageManager(inst *rpc.Instance) *packagemanager.PackageManager
- func GetPackageManagerExplorer(req *rpc.Instance) (explorer *packagemanager.Explorer, release func())
- func IsValid(inst *rpc.Instance) bool
- func SetLibraryManager(inst *rpc.Instance, lm *librariesmanager.LibrariesManager) bool
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreate¶
Create a new *rpc.Instance ready to be initialized, supporting directories are also created.
funcGetLibraryManager¶
func GetLibraryManager(inst *rpc.Instance) *librariesmanager.LibrariesManager
GetLibraryManager returns the library manager for the given instance.
funcGetPackageManager¶
func GetPackageManager(inst *rpc.Instance) *packagemanager.PackageManager
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())
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.
funcSetLibraryManager¶
func SetLibraryManager(inst *rpc.Instance, lm *librariesmanager.LibrariesManager)bool
SetLibraryManager sets the library manager for the given instance.
Types¶
This section is empty.