Documentation
¶
Overview ¶
Package eos
Package eos ¶
Package eos ¶
Package eos ¶
Package eos ¶
Package eos ¶
Package eos
Index ¶
- Constants
- func GetLogger() *log.Logger
- func NewClient(account *Account) (*lego.Client, error)
- func ObtainDomains(c *lego.Client, domains []string) (*certificate.Resource, error)
- func RegAccount(c *lego.Client) (*registration.Resource, error)
- func RegProvider(c *lego.Client) error
- func SaveCert(cert *certificate.Resource) error
- type Account
- type ApiVersion
- type EosConfig
- type KeyType
Constants ¶
View Source
const ( PrivateKey = "private.key" // 私钥 Certificate = "certificate.pem" // 证书 CA = "ca.crt" // CA CSR = "csr" // 全量csr )
Variables ¶
This section is empty.
Functions ¶
func ObtainDomains ¶
func RegAccount ¶
func RegAccount(c *lego.Client) (*registration.Resource, error)
Types ¶
type Account ¶
type Account struct { Email string `json:"email"` Registration *registration.Resource `json:"registrations"` KeyType KeyType `json:"keyType"` // contains filtered or unexported fields }
func (*Account) AddRegistration ¶
func (a *Account) AddRegistration(reg *registration.Resource)
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 ApiVersion ¶
type ApiVersion string
const ( Production ApiVersion = "Production" Sandbox ApiVersion = "Sandbox" )
Click to show internal directories.
Click to hide internal directories.