Documentation ¶
Index ¶
- func MapStructsToTables(dbmap *gorp.DbMap)
- type AuditResponse
- type CAInfoResponse
- type CertSummary
- type CertsResponse
- type DBRequest
- type MstrCertType
- type NewCACertRequest
- type NewCAResponse
- type NewCertResponse
- type NewClientCertRequest
- type NewServerCertRequest
- type SlimCertData
- type Subject
- type TranCAInfo
- type TranCertificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapStructsToTables ¶
MapStructsToTables 構造体と物理テーブルの紐付け
Types ¶
type AuditResponse ¶
type AuditResponse struct { CAID string `json:"ca_id"` Days int `json:"days"` ExpectedDate string `json:"expected_date"` Certs []CertSummary `json:"certs"` }
証明書有効期限監査時のレスポンス
type CAInfoResponse ¶
type CAInfoResponse struct { CAID string `json:"ca_id"` ValidCerts []CertSummary `json:"valid_certs"` InvalidCerts []SlimCertData `json:"invalid_certs"` }
CA認証局配下の証明書情報についてのレスポンス
type CertSummary ¶
type CertSummary struct { Serial uint32 `json:"serial"` CommonName string `json:"common_name"` CertType string `json:"cert_type"` Created string `json:"created"` ExpirationDate string `json:"expiration_date"` }
証明書情報のまとめ用構造体
type CertsResponse ¶
type CertsResponse struct { CAID string `json:"ca_id"` Count int `json:"count"` CommonName string `json:"common_name"` Certs []CertSummary `json:"certs"` }
証明書情報に関するレスポンス
type MstrCertType ¶
type MstrCertType struct {
CertType string `db:"cert_type" json:"cert_type"`
}
type NewCACertRequest ¶
type NewCACertRequest struct { Subject Subject `json:"subject" binding:"required"` PrivateKeyAlgorithm string `json:"private_key_algorithm" binding:"required"` Bits int `json:"bits"` }
CA証明書発行用リクエスト
type NewCAResponse ¶
CA認証局作成時のレスポンス
type NewCertResponse ¶
type NewCertResponse struct { CAID string `json:"ca_id"` Serial uint32 `json:"serial"` CommonName string `json:"common_name"` }
新規証明書発行時のレスポンス
type NewClientCertRequest ¶
type NewClientCertRequest struct {
CommonName string `json:"common_name" binding:"required"`
}
クライアント証明書発行用リクエスト
type NewServerCertRequest ¶
type NewServerCertRequest struct { CommonName string `json:"common_name" binding:"required"` SubjectAltName []string `json:"subject_alt_name" binding:"required"` }
サーバ証明書発行用リクエスト
type SlimCertData ¶
type SlimCertData struct { CAID string `db:"ca_id, primarykey" json:"ca_id"` Serial uint32 `db:"serial, primarykey" json:"serial"` CommonName string `db:"common_name" json:"common_name"` CertType string `db:"cert_type" json:"cert_type"` Created string `db:"created" json:"created"` ExpirationDate string `db:"expiration_date" json:"expiration_date"` IsRevoked int `db:"is_revoked" json:"is_revoked"` Revoked string `db:"revoked" json:"revoked"` }
証明書データ・秘密鍵データがない軽量版データのレスポンス
type Subject ¶
type Subject struct { CommonName string `json:"common_name" binding:"required"` Country string `json:"country"` State string `json:"state"` Locality string `json:"locality"` Organization string `json:"organization"` }
pkix.NameのSubject用構造体
type TranCAInfo ¶
type TranCertificate ¶
type TranCertificate struct { CAID string `db:"ca_id, primarykey" json:"ca_id"` Serial uint32 `db:"serial, primarykey" json:"serial"` CommonName string `db:"common_name" json:"common_name"` PrivateKey string `db:"private_key" json:"private_key"` CertType string `db:"cert_type" json:"cert_type"` CertData string `db:"cert_data" json:"cert_data"` Created string `db:"created" json:"created"` ExpirationDate string `db:"expiration_date" json:"expiration_date"` IsRevoked int `db:"is_revoked" json:"is_revoked"` Revoked string `db:"revoked" json:"revoked"` }
Click to show internal directories.
Click to hide internal directories.