Documentation ¶
Index ¶
- func CreateCertAndInfoTransaction(certContent *db.CertContent, certInfo *db.CertInfo) error
- func CreateCertTransaction(certContent *db.CertContent, certInfo *db.CertInfo, keyPair *db.KeyPair) error
- func FindAppInfo(appId string) (*db.AppInfo, error)
- func FindCertContent(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.CertContent, error)
- func FindCertContentBySn(sn int64) (*db.CertContent, error)
- func FindCertContents(userId, orgId string, usage db.CertUsage, userType db.UserType) ([]*db.CertContent, error)
- func FindCertInfo(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.CertInfo, error)
- func FindCertInfoByPrivateKey(privateKeyId string) (*db.CertInfo, error)
- func FindCertInfoBySn(sn int64) (*db.CertInfo, error)
- func FindCertInfos(userId, orgId string, usage db.CertUsage, userType db.UserType) ([]*db.CertInfo, error)
- func FindKeyPair(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.KeyPair, error)
- func FindKeyPairBySki(ski string) (*db.KeyPair, error)
- func FindNodeIdByCertSn(certSn int64) (string, error)
- func FindNodeIdByKeyId(keyId string) (string, error)
- func InsertAppInfo(ac *db.AppInfo) error
- func InsertRevokedCert(revokedCert *db.RevokedCert) error
- func QueryRevokedCertByIssueSn(sn int64) ([]*db.RevokedCert, error)
- func QueryRevokedCertByRevokedSn(sn int64) (*db.RevokedCert, error)
- func UpdateCertContent(oldCertContent, newCertContent *db.CertContent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertAndInfoTransaction ¶
func CreateCertAndInfoTransaction(certContent *db.CertContent, certInfo *db.CertInfo) error
The transaction that inserts cert and certinfo into the database
func CreateCertTransaction ¶
func CreateCertTransaction(certContent *db.CertContent, certInfo *db.CertInfo, keyPair *db.KeyPair) error
The transaction that inserts cert, kepair, and certinfo into the database
func FindCertContent ¶
func FindCertContent(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.CertContent, error)
Find certcontent which certstatus is active by conditions
func FindCertContentBySn ¶
func FindCertContentBySn(sn int64) (*db.CertContent, error)
Find certcontent by Sn
func FindCertContents ¶
func FindCertContents(userId, orgId string, usage db.CertUsage, userType db.UserType) ([]*db.CertContent, error)
Find certcontent by conditions
func FindCertInfo ¶
func FindCertInfo(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.CertInfo, error)
Find certinfo by conditions
func FindCertInfoByPrivateKey ¶
Find certinfo by privateKeyid
func FindCertInfos ¶
func FindCertInfos(userId, orgId string, usage db.CertUsage, userType db.UserType) ([]*db.CertInfo, error)
Find certinfos by conditions
func FindKeyPair ¶
func FindKeyPair(userId, orgId string, usage db.CertUsage, userType db.UserType) (*db.KeyPair, error)
Find certcontent which certstatus is active by conditions
func InsertRevokedCert ¶
func InsertRevokedCert(revokedCert *db.RevokedCert) error
Inset revokedcert into database
func QueryRevokedCertByIssueSn ¶
func QueryRevokedCertByIssueSn(sn int64) ([]*db.RevokedCert, error)
Query revokedcert by issue sn
func QueryRevokedCertByRevokedSn ¶
func QueryRevokedCertByRevokedSn(sn int64) (*db.RevokedCert, error)
Query revokedcert by revoke sn
func UpdateCertContent ¶
func UpdateCertContent(oldCertContent, newCertContent *db.CertContent) error
Update cert content
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.