• This function creates an opa bundle tarball from the given content

    Throws

    WorkdirNotFoundError If the workDir doesn't exist.

    Throws

    OpaNotFoundError If the OPA binary wasn't detected in the OS path.

    Throws

    OpaTestsFailedError If the OPA tests failed.

    Throws

    OpaCoverageTooLowError If the OPA tests coverage was below the threshold.

    Throws

    OpaBundleCreationError If the OPA bundle creation process failed.

    Parameters

    • content: BundleContent

      The data from which to create the bundle

    • workDir: string

      The place where the bundle will be created

    • bundlePath: string

      The relative path compared to workDir

    • Optional tests: TestOptions

      Controls whether to run tests and/or coverage

    Returns Promise<void>

Generated using TypeDoc