instances

package
v0.36.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dataDir, packagesDir, downloadsDir *paths.Path, extraUserAgent ...string) (*rpc.Instance, error)

Create a new *rpc.Instance ready to be initialized

func Delete

func Delete(inst *rpc.Instance) bool

Delete removes an instance.

func GetLibrariesIndex added in v1.0.0

func GetLibrariesIndex(inst *rpc.Instance) (*librariesindex.Index, error)

GetLibrariesIndex returns the library index for the given instance.

func GetLibraryManager

func GetLibraryManager(inst *rpc.Instance) (*librariesmanager.LibrariesManager, error)

GetLibraryManager returns the library manager for the given instance.

func GetLibraryManagerExplorer added in v1.0.0

func GetLibraryManagerExplorer(inst *rpc.Instance) (*librariesmanager.Explorer, func(), error)

GetLibraryManagerExplorer returns the library manager Explorer for the given instance.

func GetLibraryManagerInstaller added in v1.0.0

func GetLibraryManagerInstaller(inst *rpc.Instance) (*librariesmanager.Installer, func(), error)

GetLibraryManagerInstaller returns the library manager Installer for the given instance.

func GetPackageManager

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.

func GetPackageManagerExplorer

func GetPackageManagerExplorer(req *rpc.Instance) (explorer *packagemanager.Explorer, release func(), _err error)

GetPackageManagerExplorer returns a new package manager Explorer. The explorer holds a read lock on the underlying PackageManager and it should be released by calling the returned "release" function.

func IsValid

func IsValid(inst *rpc.Instance) bool

IsValid returns true if the given instance is valid.

func SetLibrariesIndex added in v1.0.0

func SetLibrariesIndex(inst *rpc.Instance, li *librariesindex.Index) error

SetLibrariesIndex sets the library index for the given instance.

func SetLibraryManager

func SetLibraryManager(inst *rpc.Instance, lm *librariesmanager.LibrariesManager) bool

SetLibraryManager sets the library manager for the given instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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