sshkey

package
v0.0.0-...-9e7e4f5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package sshkey implements the sshkey module in the agent

Index

Constants

View Source
const (
	KeyTypePrivate        = "private"
	KeyTypePublic         = "public"
	KeyTypeAuthorizedKeys = "authorizedkeys"
)

Constants used in KeyInfo.Type

Variables

This section is empty.

Functions

This section is empty.

Types

type Elements

type Elements struct {
	Keys []KeyInfo `json:"keys"`
}

Elements is the type that contains the results of a module invocation

type KeyInfo

type KeyInfo struct {
	FingerprintMD5    string `json:"fingerprint_md5"`    // MD5 fingerprint
	FingerprintSHA256 string `json:"fingerprint_sha256"` // SHA256 fingerprint
	Path              string `json:"path"`               // Path to file
	Encrypted         bool   `json:"encrypted"`          // True if private key is encrypted
	Type              string `json:"type"`               // Type of file (e.g., private, public)
}

KeyInfo describes information about a key that has been identified

Jump to

Keyboard shortcuts

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