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

    Function computeResources_validate

    • Validates that specified compute resources exist in ChRIS CUBE.

      Parameters

      • resourceNames: string[]

        Array of compute resource names to validate.

      Returns Promise<Result<string[]>>

      A Result containing valid resource names, or Err with available resources in errorStack.

      const result = await computeResources_validate(['host', 'gpu']);
      if (!result.ok) {
      // Check errorStack for available resources
      const errors = errorStack.allOfType_get('error');
      console.error(errors);
      return;
      }
      // Proceed with valid resources