Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Certificates ¶
type Certificates struct {
SerialNumber string `gorm:"primary_key;column:serial_number;type:varchar;size:128;" json:"serial_number" db:"serial_number"`
AuthorityKeyIdentifier string `` /* 135-byte string literal not displayed */
CaLabel sql.NullString `gorm:"column:ca_label;type:varchar;size:128;" json:"ca_label" db:"ca_label"`
Status string `gorm:"column:status;type:varchar;size:128;" json:"status" db:"status"`
Reason sql.NullInt64 `gorm:"column:reason;type:int;" json:"reason" db:"reason"`
Expiry time.Time `gorm:"column:expiry;type:timestamp;" json:"expiry" db:"expiry"`
RevokedAt time.Time `gorm:"column:revoked_at;type:timestamp;" json:"revoked_at" db:"revoked_at"`
Pem string `gorm:"column:pem;type:text;size:65535;" json:"pem" db:"pem"`
IssuedAt time.Time `gorm:"column:issued_at;type:timestamp;" json:"issued_at" db:"issued_at"`
NotBefore time.Time `gorm:"column:not_before;type:timestamp;" json:"not_before" db:"not_before"`
Metadata sql.NullString `gorm:"column:metadata;type:json;" json:"metadata" db:"metadata"`
Sans sql.NullString `gorm:"column:sans;type:json;" json:"sans" db:"sans"`
CommonName sql.NullString `gorm:"column:common_name;type:text;size:65535;" json:"common_name" db:"common_name"`
}
Certificates struct is a row record of the certificates table in the cap database
func (*Certificates) TableName ¶
func (c *Certificates) TableName() string
TableName sets the insert table name for this struct type
type ColumnInfo ¶
type ColumnInfo struct {
Index int `json:"index"`
GoFieldName string `json:"go_field_name"`
GoFieldType string `json:"go_field_type"`
JSONFieldName string `json:"json_field_name"`
ProtobufFieldName string `json:"protobuf_field_name"`
ProtobufType string `json:"protobuf_field_type"`
ProtobufPos int `json:"protobuf_field_pos"`
Comment string `json:"comment"`
Notes string `json:"notes"`
Name string `json:"name"`
Nullable bool `json:"is_nullable"`
DatabaseTypeName string `json:"database_type_name"`
DatabaseTypePretty string `json:"database_type_pretty"`
IsPrimaryKey bool `json:"is_primary_key"`
IsAutoIncrement bool `json:"is_auto_increment"`
IsArray bool `json:"is_array"`
ColumnType string `json:"column_type"`
ColumnLength int64 `json:"column_length"`
DefaultValue string `json:"default_value"`
}
ColumnInfo describes a column in the database table
type Forbid ¶
type Forbid struct {
ID uint32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:uint;" json:"id" db:"id"`
UniqueID string `gorm:"column:unique_id;type:varchar;size:40;" json:"unique_id" db:"unique_id"`
CreatedAt time.Time `gorm:"column:created_at;type:timestamp;" json:"created_at" db:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;" json:"updated_at" db:"updated_at"`
DeletedAt null.Time `gorm:"column:deleted_at;type:timestamp;" json:"deleted_at" db:"deleted_at"`
}
Forbid struct is a row record of the forbid table in the cap database
type Model ¶
type Model interface {
TableName() string
BeforeSave() error
Prepare()
Validate(action Action) error
TableInfo() *TableInfo
}
Model interface methods for database structs generated
type OcspResponses ¶
type OcspResponses struct {
SerialNumber string `gorm:"primary_key;column:serial_number;type:varchar;size:128;" json:"serial_number" db:"serial_number"`
AuthorityKeyIdentifier string `` /* 135-byte string literal not displayed */
Body string `gorm:"column:body;type:text;size:65535;" json:"body" db:"body"`
Expiry time.Time `gorm:"column:expiry;type:timestamp;" json:"expiry" db:"expiry"`
}
OcspResponses struct is a row record of the ocsp_responses table in the cap database
func (*OcspResponses) TableName ¶
func (o *OcspResponses) TableName() string
TableName sets the insert table name for this struct type
type SelfKeypair ¶
type SelfKeypair struct {
ID uint32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:uint;" json:"id" db:"id"`
Name string `gorm:"column:name;type:varchar;size:40;" json:"name" db:"name"`
PrivateKey sql.NullString `gorm:"column:private_key;type:text;size:65535;" json:"private_key" db:"private_key"`
Certificate sql.NullString `gorm:"column:certificate;type:text;size:65535;" json:"certificate" db:"certificate"`
CreatedAt time.Time `gorm:"column:created_at;type:timestamp;" json:"created_at" db:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;" json:"updated_at" db:"updated_at"`
}
SelfKeypair struct is a row record of the self_keypair table in the cap database
func (*SelfKeypair) TableName ¶
func (s *SelfKeypair) TableName() string
TableName sets the insert table name for this struct type
type TableInfo ¶
type TableInfo struct {
Name string `json:"name"`
Columns []*ColumnInfo `json:"columns"`
}
TableInfo describes a table in the database
Click to show internal directories.
Click to hide internal directories.