Documentation
¶
Index ¶
- Variables
- func WasIssuedByAnotherAccountError(err error) bool
- func WasIssuedByAnotherIssuerError(err error) bool
- type ARIConfig
- type Account
- type AccountConfig
- type CertificateConfig
- type CertificateObtainRequestConfig
- type Client
- func (c *Client) IssueNewCertificate(domains []string) (*certificate.Resource, error)
- func (c *Client) RegisterAccount(opts registration.RegisterOptions) (*registration.Resource, error)
- func (c *Client) RenewCertificate(domain string, domains []string, curCert *x509.Certificate, skipRenew bool) (*certificate.Resource, error)
- func (c *Client) SetDNS01Provider(dnsProvider challenge.Provider) error
- type Config
- type DNSConfig
- type HTTPClientConfig
- type KeyType
- type LegoSlogAdapter
- func (l *LegoSlogAdapter) Fatal(args ...any)
- func (l *LegoSlogAdapter) Fatalf(format string, args ...any)
- func (l *LegoSlogAdapter) Fatalln(args ...any)
- func (l *LegoSlogAdapter) Print(args ...any)
- func (l *LegoSlogAdapter) Printf(format string, args ...any)
- func (l *LegoSlogAdapter) Println(args ...any)
- type Option
- type RegisterConfig
- type RenewConfig
- type SlogLeveledLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCetificateBundleStartsWithCA = errors.New("certificate bundle starts with a CA certificate")
View Source
var ErrNoRenewal = errors.New("no renewal")
View Source
var ErrSkipRenewal = errors.New("skip renewal")
Functions ¶
Types ¶
type Account ¶
type Account struct {
Email string `json:"email"`
Registration *registration.Resource `json:"registration"`
PrivateKey crypto.PrivateKey `json:"-"`
}
Account represents a users local saved credentials.
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 AccountConfig ¶
type CertificateConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) IssueNewCertificate ¶
func (c *Client) IssueNewCertificate(domains []string) (*certificate.Resource, error)
func (*Client) RegisterAccount ¶
func (c *Client) RegisterAccount(opts registration.RegisterOptions) (*registration.Resource, error)
func (*Client) RenewCertificate ¶
func (c *Client) RenewCertificate(domain string, domains []string, curCert *x509.Certificate, skipRenew bool) (*certificate.Resource, error)
type Config ¶
type Config struct {
CADirURL string `yaml:"ca_dir_url"`
UserAgent string `yaml:"user_agent"`
Register RegisterConfig `yaml:"register"`
Account AccountConfig `yaml:"account"`
Certificate CertificateConfig `yaml:"certificate"`
HTTPClient HTTPClientConfig `yaml:"http_client"`
DNS DNSConfig `yaml:"dns"`
ARI ARIConfig `yaml:"ari"`
Renew RenewConfig `yaml:"renew"`
}
type HTTPClientConfig ¶
type LegoSlogAdapter ¶
type LegoSlogAdapter struct {
// contains filtered or unexported fields
}
func NewLegoSlogAdapter ¶
func NewLegoSlogAdapter(wrapped SlogLeveledLogger) *LegoSlogAdapter
func (*LegoSlogAdapter) Fatal ¶
func (l *LegoSlogAdapter) Fatal(args ...any)
func (*LegoSlogAdapter) Fatalf ¶
func (l *LegoSlogAdapter) Fatalf(format string, args ...any)
func (*LegoSlogAdapter) Fatalln ¶
func (l *LegoSlogAdapter) Fatalln(args ...any)
func (*LegoSlogAdapter) Print ¶
func (l *LegoSlogAdapter) Print(args ...any)
func (*LegoSlogAdapter) Printf ¶
func (l *LegoSlogAdapter) Printf(format string, args ...any)
func (*LegoSlogAdapter) Println ¶
func (l *LegoSlogAdapter) Println(args ...any)
type RegisterConfig ¶
type RenewConfig ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
legowrap-sakuraclouddns
command
|
|
|
providers
|
|
|
dns/sakuracloud
Package sakuracloud implements a DNS provider for solving the DNS-01 challenge using SakuraCloud DNS.
|
Package sakuracloud implements a DNS provider for solving the DNS-01 challenge using SakuraCloud DNS. |
Click to show internal directories.
Click to hide internal directories.