PluginList
Extends:
Plugin list resource object representing a list of plugins.
Constructor Summary
| Public Constructor | ||
| public |
constructor(url: string, auth: Object) Constructor |
|
Method Summary
| Public Methods | ||
| public |
getPipelines(searchParams: Object, timeout: number): Object Fetch a list of pipelines from the REST API. |
|
| public |
getPluginStars(searchParams: Object, timeout: number): Object Fetch a list of plugin stars from the REST API. |
|
| public |
Make a POST request to this plugin list resource to create a new plugin item resource through the REST API. |
|
Inherited Summary
| From class Resource | ||
| public get |
Return true if the resource object contains any data. |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Make a deep copy clone of this object resource. |
|
| From class ListResource | ||
| public get |
Get the list of item data objects (REST API descriptors). |
|
| public get |
Return true if the list resource object has a next list page in the paginated REST API. |
|
| public get |
Return true if the list resource object has a previous list page in the paginated REST API. |
|
| public get |
Get the total count of items of the entire collection across pages in the paginated REST API. |
|
| public |
collection: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
Fetch this list resource from the REST API based on search parameters. |
|
| public |
Get an item resource object given its id from the list of items in this list resource object. |
|
| public |
Get an array of item resource objects corresponding to the items in this list resource object. |
|
| public |
getPOSTParameters(): string[] Get an array of parameter names that can be used as properties of the data object in POST requests. |
|
| public |
Get an array of search parameter names that can be used as properties of the
|
|
| private |
_getResource(linkRelation: string, ResourceClass: Object, searchParams: Object, timeout: number): Object Internal method to fetch a related resource from the REST API that is referenced by a link relation within this list resource's collection object. |
|
| private |
Internal helper method to make a POST request to this list resource through the REST API. |
|
Public Constructors
Public Members
Public Methods
public getPipelines(searchParams: Object, timeout: number): Object source
Fetch a list of pipelines from the REST API.
Params:
| Name | Type | Attribute | Description |
| searchParams | Object |
|
search parameters object which is
resource-specific, the |
| searchParams.limit | number |
|
page limit |
| searchParams.offset | number |
|
page offset |
| timeout | number |
|
request timeout |
public getPluginStars(searchParams: Object, timeout: number): Object source
Fetch a list of plugin stars from the REST API.
Params:
| Name | Type | Attribute | Description |
| searchParams | Object |
|
search parameters object which is
resource-specific, the |
| searchParams.limit | number |
|
page limit |
| searchParams.offset | number |
|
page offset |
| timeout | number |
|
request timeout |
public post(data: Object, uploadFileObj: Object, timeout: number): Object source
Make a POST request to this plugin list resource to create a new plugin item resource through the REST API.
Params:
| Name | Type | Attribute | Description |
| data | Object | request JSON data object |
|
| data.name | string | plugin name |
|
| data.dock_image | string | plugin docker image |
|
| data.public_repo | string | plugin repo |
|
| uploadFileObj | Object | custom file object |
|
| uploadFileObj.descriptor_file | Object | file blob |
|
| timeout | number |
|
request timeout |