mirror of
https://github.com/status-im/sshfp-generator.git
synced 2025-02-07 18:25:05 +00:00
be748b44d6
Fully working version. TODO: Few minor changes Signed-off-by: Artur Marud <artur@status.im>
28 lines
402 B
Go
28 lines
402 B
Go
package sshfp
|
|
|
|
type SSHFPRecord struct {
|
|
Algorithm string
|
|
Type string
|
|
Fingerprint string
|
|
RecordID string
|
|
}
|
|
|
|
type AlgorithmTypes map[string]string
|
|
type HashTypes map[string]string
|
|
|
|
type ConfigPlanElement struct {
|
|
Hostname string
|
|
Operation Operation
|
|
Record *SSHFPRecord
|
|
}
|
|
|
|
type ConfigPlan []ConfigPlanElement
|
|
|
|
type Operation int
|
|
|
|
const (
|
|
UPDATE Operation = iota
|
|
CREATE
|
|
DELETE
|
|
)
|