Function regorust::regoBundleQueryEntrypoint

source ยท
pub unsafe extern "C" fn regoBundleQueryEntrypoint(
    rego: *mut regoInterpreter,
    bundle: *mut regoBundle,
    endpoint: *const c_char,
) -> *mut regoOutput
Expand description

@brief Performs a query against the specified bundle at the specified entrypoint. @details The output of the query will be returned as a regoOutput object. The entrypoint must be one of those added with ::regoAddEntrypoint when the bundle was built. If the entrypoint does not exist, the output will be an error sequence. @note The caller is responsible for freeing the output object with ::regoFreeOutput. @param rego The interpreter. @param bundle The bundle to query. @param endpoint The entrypoint to query. @return The output of the query.