- Index
- »
- fan.xeto
- »
- RemoteRepo
RemoteRepo
@Js
const mixin RemoteRepo : LibRepo
RemoteRepo is the abstract base class for network-accessible
Xeto lib repositories. RemoteRepos are used to install/update to the
local repo. Subclasses map to specific backends such as the xeto.dev
registry or the GitHub HTTP API.
Download the xetolib zip for given name and version
Get the latest version of the library name available
Get the latest version that matches the given dependency
Ping the remote repo and return metadata
Perform search request on the remote repo
Get the info for a specific library name and version
List the verions available for given library name
abstract Buf fetch(Str name, Version version)
Download the xetolib zip for given name and version
abstract LibVersion? latest(Str name, Bool checked := true)
Get the latest version of the library name available. If no versions are available then raise exception or return null based on check flag.
abstract LibVersion? latestMatch(LibDepend depend, Bool checked := true)
Get the latest version that matches the given dependency. If no matches are available, then raise exception or return null based on check flag.
abstract Dict? ping(Bool checked := true)
Ping the remote repo and return metadata; if not reachable raise an exception or return null based on checked flag.
abstract RemoteRepoSearchRes search(RemoteRepoSearchReq req)
Perform search request on the remote repo
abstract LibVersion? version(Str name, Version version, Bool checked := true)
Get the info for a specific library name and version. If the given library or version is not available then raise exception or return null based on the checked flag.
abstract LibVersion[] versions(Str name, Dict? opts := null)
List the verions available for given library name. The library versions are sorted from latest to oldest. If the library is not available always return empty list.
Options:
- limit: max number to return
- versions: constraints as LibDependVersions instance