mise API - v0.0.0
    Preparing search index...

    Function plugin_importFromStore

    • 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.

      Parameters

      • storeUrl: string

        URL of the plugin in the peer store.

      • pluginData: Record<string, unknown>

        Plugin data from peer store.

      • computeResources: string[] = ...

        Array of compute resource names to assign plugin to.

      • OptionaladminCreds: AdminCredentials

        Optional admin credentials for registration.

      Returns Promise<PluginImportResult>

      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
      }