models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapStructsToTables

func MapStructsToTables(dbmap *gorp.DbMap)

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 DBRequest

type DBRequest struct {
	Serial     uint32 `json:"serial"`
	CommonName string `json:"common_name"`
}

DBのクエリ用リクエスト

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

type NewCAResponse struct {
	CAID     string `json:"ca_id"`
	Password string `json:"password"`
}

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 TranCAInfo struct {
	Id       string `db:"id, primarykey" json:"id"`
	Password string `db:"password" json:"password"`
	Created  string `db:"created" json:"created"`
}

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"`
}

Jump to

Keyboard shortcuts

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