models

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 FindAppInfo

func FindAppInfo(appId string) (*db.AppInfo, error)

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

func FindCertInfoByPrivateKey(privateKeyId string) (*db.CertInfo, error)

Find certinfo by privateKeyid

func FindCertInfoBySn

func FindCertInfoBySn(sn int64) (*db.CertInfo, error)

Find certinfo by sn

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 FindKeyPairBySki

func FindKeyPairBySki(ski string) (*db.KeyPair, error)

Find keypair by ski

func FindNodeIdByCertSn

func FindNodeIdByCertSn(certSn int64) (string, error)

func FindNodeIdByKeyId

func FindNodeIdByKeyId(keyId string) (string, error)

func InsertAppInfo

func InsertAppInfo(ac *db.AppInfo) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL