Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSaveDir = "/var/lib/oss-auto-cert"
DefaultSaveDir 默认证书保存目录 保存路径格式: {SaveDir}/{domain}/
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegoService ¶ added in v0.0.2
type LegoService struct {
// contains filtered or unexported fields
}
func NewLego ¶
func NewLego(acme config.Acme) *LegoService
func (*LegoService) Obtain ¶ added in v0.0.2
func (lg *LegoService) Obtain(bucket string, domain string, ossClient *oss.Client) (*certificate.Resource, error)
Obtain 申请证书
func (*LegoService) Stop ¶ added in v0.0.6
func (lg *LegoService) Stop()
type User ¶
type User struct { Email string Registration *registration.Resource // contains filtered or unexported fields }
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.