10 class PostgresJobProvider : public JobProvider {
14 PostgresJobProvider( const std::string& server, const std::string& user, const std::string& password, const std::string& database );
17 std::shared_ptr<Job> fetchJob();
18 void finishJob( std::shared_ptr<Job> job );
19 void failJob( std::shared_ptr<Job> job );
20 std::shared_ptr<TBSCertificate> fetchTBSCert( std::shared_ptr<Job> job );
21 void writeBack( std::shared_ptr<Job> job, std::shared_ptr<SignedCertificate> res );
22 std::pair<std::string, std::string> getRevocationInfo( std::shared_ptr<Job> job );
23 void writeBackRevocation( std::shared_ptr<Job> job, std::string date );