Documentation
¶
Index ¶
- type Service
- func (service *Service) AddUserPGPKey(userID uint, key, proof string) error
- func (service *Service) ExpectedPGPKeyProofText(userID uint) string
- func (service *Service) GetUserPGPKeys(userID uint) ([]*models.PGPKey, error)
- func (service *Service) IdentifySigner(message io.Reader) (uint, error)
- func (service *Service) RemovePGPKey(id uint, userID uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages pgp keys and verification
func (*Service) AddUserPGPKey ¶
AddUserPGPKey associates a PGP key with the user, if the proof is valid.
func (*Service) ExpectedPGPKeyProofText ¶
ExpectedPGPKeyProofText returns the expected PGP Key ownership proof text. for a given user.
func (*Service) GetUserPGPKeys ¶
GetUserPGPKeys returns all PGP Keys associated with a user
func (*Service) IdentifySigner ¶
IdentifySigner will identify the user that has signed the given clearsigned message.
Click to show internal directories.
Click to hide internal directories.