Implements a IPackageRepository that queries a local directory for OpenTAP packages.
More...
|
string | Url [get] |
| The url of the repository.
|
|
Implements a IPackageRepository that queries a local directory for OpenTAP packages.
◆ FilePackageRepository()
OpenTap.Package.FilePackageRepository.FilePackageRepository |
( |
string |
path | ) |
|
|
inline |
Constructs a FilePackageRepository for a directory
- Parameters
-
path | Relative or absolute path or URI to a directory or a file. If file, the repository will be the directory containing the file |
- Exceptions
-
NotSupportedException | Path is not a valid file package repository |
◆ CheckForUpdates()
Returns a list of all packages that have an updated version.
- Parameters
-
packages | |
cancellationToken | A cancellation token that can be used to cancel the download. |
- Returns
- An array of package definitions PackageDef.
Implements OpenTap.Package.IPackageRepository.
◆ DownloadPackage()
void OpenTap.Package.FilePackageRepository.DownloadPackage |
( |
IPackageIdentifier |
package, |
|
|
string |
destination, |
|
|
CancellationToken |
cancellationToken |
|
) |
| |
|
inline |
Downloads a package from this repository to a file.
- Parameters
-
package | The package to download. |
destination | The destination path where the package should be stored. |
cancellationToken | A cancellation token that can be used to cancel the download. |
Implements OpenTap.Package.IPackageRepository.
◆ GetPackageNames()
string[] OpenTap.Package.FilePackageRepository.GetPackageNames |
( |
CancellationToken |
cancellationToken, |
|
|
params IPackageIdentifier[] |
compatibleWith |
|
) |
| |
|
inline |
Get all names of packages.
- Parameters
-
cancellationToken | A cancellation token that can be used to cancel the download. |
compatibleWith | Any packages that the package to download must be compatible with. |
- Returns
- An array of package names.
Implements OpenTap.Package.IPackageRepository.
◆ GetPackages()
This returns the latest version of a package that matches a number of specified parameters. If multiple packages have that same version number they all will be returned.
- Parameters
-
package | A package identifier. If not specified, packages with any name will be returned. |
cancellationToken | A cancellation token that can be used to cancel the download. |
compatibleWith | Any packages that the package to download must be compatible with. |
- Returns
- An array of package definitions PackageDef.
Implements OpenTap.Package.IPackageRepository.
◆ GetPackageVersions()
PackageVersion[] OpenTap.Package.FilePackageRepository.GetPackageVersions |
( |
string |
packageName, |
|
|
CancellationToken |
cancellationToken, |
|
|
params IPackageIdentifier[] |
compatibleWith |
|
) |
| |
|
inline |
Returns all package version information about a package.
- Parameters
-
packageName | The name package to retrieve version info about. |
cancellationToken | A cancellation token that can be used to cancel the download. |
compatibleWith | Any packages that the package to download must be compatible with. |
- Returns
- An array of package versions.
Implements OpenTap.Package.IPackageRepository.