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

    Function pipelineFile_getByPath

    • Downloads a pipeline source file by path and returns the raw binary content.

      Pipeline source files are typically YAML configuration files stored under /PIPELINES//. The API returns fname as the full path like "PIPELINES/user/file.yml" (without leading slash).

      Parameters

      • filePath: string

        The full path to the pipeline file, e.g., /PIPELINES/user/pipeline.yml

      Returns Promise<Result<Buffer<ArrayBufferLike>>>

      A Result containing the file content as a Buffer, or an error.

      const result = await pipelineFile_getByPath('/PIPELINES/user/config.yml');
      if (result.ok) {
      const buffer: Buffer = result.value;
      const yamlContent = buffer.toString('utf-8');
      }