Constructor
new RepositoryBase(remoteRepository)
Parameters:
Name | Type | Description |
---|---|---|
remoteRepository |
RemoteRepository |
A configuration object that includes information about how to connect to the remote repository's REST API. |
Methods
hasRequiredConnectionInfo() → {boolean}
This returns true if the RemoteRepository object has enough info to attempt a connection. Most repos required a url, userId, and/or apiToken.
Subclasses MUST override this method and must not call super().
provides()
This returns a list of objects describing what reports this module provides. The DART dashboard queries this list to see what method calls this plugin makes available. Each object in the list this function returns has three properties.
title - This is the title of the report. The dashboard will display this title as is at the top of the report.
description - A description of the report.
method - A function to call to get the contents of the report. The function takes no parameters and should a promis that ultimately returns HTML. The dashboard will display the HTML when the promise is resolved.
Subclasses MUST override this method and must not call super().