host_key_entity

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostKey

type HostKey struct {
	ID          int64  `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	Host        string `gorm:"column:host;type:varchar(255);uniqueIndex:idx_host_port_type" json:"host"`
	Port        int    `gorm:"column:port;uniqueIndex:idx_host_port_type" json:"port"`
	KeyType     string `gorm:"column:key_type;type:varchar(50);not null;uniqueIndex:idx_host_port_type" json:"keyType"`
	PublicKey   string `gorm:"column:public_key;type:text;not null" json:"-"`
	Fingerprint string `gorm:"column:fingerprint;type:varchar(255);not null" json:"fingerprint"`
	FirstSeen   int64  `gorm:"column:first_seen" json:"firstSeen"`
	LastSeen    int64  `gorm:"column:last_seen" json:"lastSeen"`
}

HostKey SSH 主机密钥实体

func (HostKey) TableName

func (HostKey) TableName() string

TableName GORM 表名

Jump to

Keyboard shortcuts

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