compiler.routes module

Provides the main API blueprint for compilation.

Notes

mypy doesn’t have types for flask.Headers.extend, so those lines are excluded from type checking.

compiler.routes.authorizer(scope)[source]

Make an authorizer function for injection into a controller.

Return type

Callable[[Task], bool]

compiler.routes.compile()[source]

Request that a source package be compiled.

Return type

Response

compiler.routes.get_log(source_id, checksum, output_format)[source]

Get a compilation log.

Return type

Response

compiler.routes.get_product(source_id, checksum, output_format)[source]

Get a compilation product.

Return type

Response

compiler.routes.get_service_status()[source]

Get information about the current status of compilation service.

Return type

Union[str, Response]

compiler.routes.get_status(source_id, checksum, output_format)[source]

Get the status of a compilation task.

Return type

Response

compiler.routes.resource_id(source_id, checksum, output_format)[source]

Get the resource ID for an endpoint.

Return type

str