Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeDefaultIdentity() string
- func EncodeIdentity(i *Identity) string
- func EncodeRecipient(recipient *Recipient) string
- func ListSSHFingerprintsOp() (output []byte, err error)
- func MarshalAllRecipients() (out string, err error)
- func MarshalRecipient(pubkey *Recipient, w io.Writer) error
- func ReadAllKeysOp() (privateKeyFromOpRef map[string][]byte, err error)
- func ReadKeyFromPathOp(path string) (key []byte, err error)
- func ReadKeyFromPubKeyOp(pubKey ssh.PublicKey) (privateKey []byte, err error)
- func SetLogger(w io.Writer)
- func UnmarshalItemList(output []byte) (items []map[string]interface{}, err error)
- func WriteMarshalHeader(w io.Writer)
- type DefaultIdentity
- type Identity
- type Recipient
Constants ¶
View Source
const (
PluginName = "1p"
)
Variables ¶
View Source
var (
Log *log.Logger
)
Functions ¶
func EncodeDefaultIdentity ¶
func EncodeDefaultIdentity() string
func EncodeIdentity ¶
func EncodeRecipient ¶
func ListSSHFingerprintsOp ¶
func MarshalAllRecipients ¶
func ReadAllKeysOp ¶
func ReadKeyFromPathOp ¶
func ReadKeyFromPubKeyOp ¶
func UnmarshalItemList ¶
func WriteMarshalHeader ¶
Types ¶
type DefaultIdentity ¶
type DefaultIdentity struct {
// contains filtered or unexported fields
}
func NewDefaultIdentity ¶
func NewDefaultIdentity() (*DefaultIdentity, error)
type Identity ¶
type Identity struct { Version uint8 PubKey ssh.PublicKey // contains filtered or unexported fields }
func CreateIdentityFromPath ¶
func DecodeIdentity ¶
func GetAllIdentities ¶
func NewIdentity ¶
type Recipient ¶
func DecodeRecipient ¶
func NewRecipient ¶
func (*Recipient) MarshalWithDefaultIdentity ¶
Click to show internal directories.
Click to hide internal directories.