Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrRenewCertificate ¶
func GetOrRenewCertificate(config *configuration.UserConfig, days int) (bool, error)
func NewClient ¶
func NewClient(userConfig configuration.UserConfig) (lego.Client, error)
Create a new client to request certificate
func RequestCertificate ¶
func RequestCertificate(config configuration.UserConfig) (*certificate.Resource, error)
Request certificate according to user configuration
Types ¶
type User ¶
type User struct { Email string Registration *registration.Resource Key crypto.PrivateKey }
User type that implements acme.User
Implements the following methods:
- User.GetEmail()
- User.GetRegistration()
- User.GetPrivateKey()
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (User) GetRegistration ¶
func (u User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.