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

    Class ChRISPlugin

    Class for managing individual ChRIS plugins.

    Index
    • Checks if a plugin with given name or dock_image already exists in current CUBE.

      Parameters

      • nameOrImage: string

        Plugin name or docker image to search for.

      Returns Promise<Record<string, unknown> | null>

      Promise resolving to plugin data if found, null otherwise.

    • Gets the compute resources currently assigned to a plugin.

      Parameters

      • pluginId: number

        ID of the plugin.

      Returns Promise<string[]>

      Promise resolving to array of compute resource names.

    • Lists plugins from a peer ChRIS store. Handles pagination to fetch all results.

      Parameters

      • peerStoreUrl: string = 'https://cube.chrisproject.org/api/v1/'

        URL of the peer store.

      • OptionalsearchParams: Record<string, string>

        Optional search parameters.

      Returns Promise<Record<string, unknown>[] | null>

      Promise resolving to array of plugin data objects.

    • Uploads a plugin representation file to create a new plugin admin resource.

      Requires admin credentials. Will push error to errorStack if authentication fails.

      Parameters

      • pluginData: Record<string, unknown>

        Plugin descriptor JSON data.

      • computeResources: string[] = ...

        Array of compute resource names to assign plugin to.

      • OptionaladminToken: string

        Optional admin authentication token (if different from current user).

      Returns Promise<Record<string, unknown> | null>

      Promise resolving to the created plugin data or null on failure.

    • Searches for a plugin in a peer ChRIS store (public plugin repository).

      Uses anonymous client to query public plugin stores without authentication.

      Parameters

      • pluginName: string

        Name of the plugin to search for.

      • Optionalversion: string

        Optional version of the plugin to search for.

      • peerStoreUrl: string = 'https://cube.chrisproject.org/api/v1/'

        URL of the peer ChRIS store (default: cube.chrisproject.org).

      Returns Promise<{ plugin: Record<string, unknown>; storeUrl: string } | null>

      Promise resolving to plugin data and store URL, or null if not found.

    • Converts a plain string to a searchable format.

      Parameters

      • plugin: string

      Returns string

      Use Searchable.from() instead.