URL of the plugin in the peer store.
Plugin data from peer store.
Array of compute resource names to assign plugin to.
OptionaladminCreds: AdminCredentials
Optional admin credentials for registration.
Promise resolving to import result.
const result = await plugin_importFromStore(
'https://cube.chrisproject.org/api/v1/plugins/96/',
pluginData,
['host', 'gpu'],
{ username: 'admin', password: 'password' }
);
if (result.success) {
console.log('Plugin imported successfully');
} else if (result.requiresAuth) {
// Prompt for admin credentials
}
Imports a plugin from a peer store URL.
Note: ChRIS CUBE may or may not support direct import from store URLs. This function attempts import and falls back to providing plugin data for manual registration if direct import is not supported.