forked from TrueCloudLab/lego
17 lines
372 B
Go
17 lines
372 B
Go
|
package registration
|
||
|
|
||
|
import (
|
||
|
"crypto"
|
||
|
"crypto/rsa"
|
||
|
)
|
||
|
|
||
|
type mockUser struct {
|
||
|
email string
|
||
|
regres *Resource
|
||
|
privatekey *rsa.PrivateKey
|
||
|
}
|
||
|
|
||
|
func (u mockUser) GetEmail() string { return u.email }
|
||
|
func (u mockUser) GetRegistration() *Resource { return u.regres }
|
||
|
func (u mockUser) GetPrivateKey() crypto.PrivateKey { return u.privatekey }
|