Artur Marud be748b44d6
sshfp-generator: initial commit.
Fully working version.
TODO: Few minor changes

Signed-off-by: Artur Marud <artur@status.im>
2022-06-24 02:47:20 +02:00

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
)