package
0.0.1
Repository: https://github.com/ztalab/zaca.git
Documentation: pkg.go.dev

# Functions

AddCertificates is a function to add a single record to certificates table in the cap database error - ErrInsertFailed, db save call failed.
AddForbid is a function to add a single record to forbid table in the cap database error - ErrInsertFailed, db save call failed.
AddOcspResponses is a function to add a single record to ocsp_responses table in the cap database error - ErrInsertFailed, db save call failed.
AddSelfKeypair is a function to add a single record to self_keypair table in the cap database error - ErrInsertFailed, db save call failed.
Copy a src struct into a destination struct.
DeleteCertificates is a function to delete a single record from certificates table in the cap database error - ErrNotFound, db Find error error - ErrDeleteFailed, db Delete failed error.
DeleteForbid is a function to delete a single record from forbid table in the cap database error - ErrNotFound, db Find error error - ErrDeleteFailed, db Delete failed error.
DeleteOcspResponses is a function to delete a single record from ocsp_responses table in the cap database error - ErrNotFound, db Find error error - ErrDeleteFailed, db Delete failed error.
DeleteSelfKeypair is a function to delete a single record from self_keypair table in the cap database error - ErrNotFound, db Find error error - ErrDeleteFailed, db Delete failed error.
GetAllCertificates is a function to get a slice of record(s) from certificates table in the cap database params - page - page requested (defaults to 0) params - pagesize - number of records in a page (defaults to 20) params - order - db sort order column error - ErrNotFound, db Find error.
GetAllForbid is a function to get a slice of record(s) from forbid table in the cap database params - page - page requested (defaults to 0) params - pagesize - number of records in a page (defaults to 20) params - order - db sort order column error - ErrNotFound, db Find error.
GetAllOcspResponses is a function to get a slice of record(s) from ocsp_responses table in the cap database params - page - page requested (defaults to 0) params - pagesize - number of records in a page (defaults to 20) params - order - db sort order column error - ErrNotFound, db Find error.
GetAllSelfKeypair is a function to get a slice of record(s) from self_keypair table in the cap database params - page - page requested (defaults to 0) params - pagesize - number of records in a page (defaults to 20) params - order - db sort order column error - ErrNotFound, db Find error.
GetCertificates is a function to get a single record from the certificates table in the cap database error - ErrNotFound, db Find error.
GetForbid is a function to get a single record from the forbid table in the cap database error - ErrNotFound, db Find error.
GetOcspResponses is a function to get a single record from the ocsp_responses table in the cap database error - ErrNotFound, db Find error.
GetSelfKeypair is a function to get a single record from the self_keypair table in the cap database error - ErrNotFound, db Find error.
UpdateCertificates is a function to update a single record from certificates table in the cap database error - ErrNotFound, db record for id not found error - ErrUpdateFailed, db meta data copy failed or db.Save call failed.
UpdateForbid is a function to update a single record from forbid table in the cap database error - ErrNotFound, db record for id not found error - ErrUpdateFailed, db meta data copy failed or db.Save call failed.
UpdateOcspResponses is a function to update a single record from ocsp_responses table in the cap database error - ErrNotFound, db record for id not found error - ErrUpdateFailed, db meta data copy failed or db.Save call failed.
UpdateSelfKeypair is a function to update a single record from self_keypair table in the cap database error - ErrNotFound, db record for id not found error - ErrUpdateFailed, db meta data copy failed or db.Save call failed.

# Variables

AppBuildInfo reference to build info.
DB reference to database.
ErrBadParams error when bad params passed in.
ErrDeleteFailed error when delete fails.
ErrInsertFailed error when insert fails.
ErrNotFound error when record not found.
ErrUnableToMarshalJSON error when json payload corrupt.
ErrUpdateFailed error when update fails.
Logger function that will be invoked before executing sql.

# Structs

BuildInfo is used to define the application build info, and inject values into via the build process.

# Type aliases

No description provided by the author