acme

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (User) GetRegistration

func (u User) GetRegistration() *registration.Resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL