Documentation
¶
Index ¶
- func CreateCaProfileTable(db *sql.DB)
- func CreateCaTable(db *sql.DB)
- func CreateCertTable(db *sql.DB)
- func CreateCrlTable(db *sql.DB)
- func CreateEnrollTable(db *sql.DB)
- func InitDB(filepath string) *sql.DB
- func StoreCaItem(db *sql.DB, item *CaTable)
- func StoreCaProfileItem(db *sql.DB, item CaProfileTable)
- func StoreCertItem(db *sql.DB, item CertTable)
- func StoreCrlItem(db *sql.DB, item CrlTable)
- func StoreEnrollItem(db *sql.DB, item EnrollTable)
- type CaProfileTable
- type CaTable
- type CertTable
- type CrlTable
- type EnrollTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCaProfileTable ¶
create CA Profile table if not created
func CreateCaTable ¶
CA Table create if not created | checks if an entry with same CA name is already present | if present validates for csr (TODO: this workflow)
func StoreCaProfileItem ¶
func StoreCaProfileItem(db *sql.DB, item CaProfileTable)
store a row in CA Profile table
func StoreCertItem ¶
store a row in Certificate table
func StoreEnrollItem ¶
func StoreEnrollItem(db *sql.DB, item EnrollTable)
store a row in Enrollment table
Types ¶
type CaProfileTable ¶
type CaProfileTable struct {
Name string
O string
OU string
CN string
IP string
Host int
IsCa int
Pathlength int
Validity int
}
func ReadCaProfileTable ¶
func ReadCaProfileTable(db *sql.DB) []CaProfileTable
read CA Profile table
type CaTable ¶
type CaTable struct {
Name string
Csr string
Cert string
Key string
Fingerprint string
FpAlgo int
Validity int
EnrollCount int //Enrollment count
Serial int
}
func ReadCaItem ¶
read a CA table row based on CA name
type CertTable ¶
type CrlTable ¶
type EnrollTable ¶
type EnrollTable struct {
EnrollId string
Secret string
Attributes string
Status int
Role string
Ca string
CaProfile string
}
func ReadEnrollTableItem ¶
func ReadEnrollTableItem(db *sql.DB, enrollid string) EnrollTable
func SearchEnrollItem ¶
func SearchEnrollItem(db *sql.DB, enrollid string) (EnrollTable, int)
Click to show internal directories.
Click to hide internal directories.