Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Email string `json:"email"`
Registration *registration.Resource `json:"registration"`
Key crypto.PrivateKey `json:"-"`
}
func (*Account) GetPrivateKey ¶
func (a *Account) GetPrivateKey() crypto.PrivateKey
GetPrivateKey returns the private RSA account key.
func (*Account) GetRegistration ¶
func (a *Account) GetRegistration() *registration.Resource
GetRegistration returns the server registration.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) LoadAccount ¶
func (*Storage) LoadCertificate ¶
func (s *Storage) LoadCertificate() (*tls.Certificate, error)
func (*Storage) SaveAccount ¶
func (*Storage) SaveCertificate ¶
func (s *Storage) SaveCertificate(cert *tls.Certificate) error
Click to show internal directories.
Click to hide internal directories.