Documentation ¶
Index ¶
- func DNS01Challenge(pub crypto.PublicKey, token string) (string, error)
- func EncodeJWK(pub crypto.PublicKey) (string, error)
- func EncodeJWS(claimset interface{}, key crypto.Signer, nonce string, kid string, url string) ([]byte, error)
- func ErrorWithResponse(res *http.Response) error
- func Hasher(key crypto.Signer) (string, crypto.Hash)
- func KeyAuthorization(pub crypto.PublicKey, token string) (string, error)
- func Sign(key crypto.Signer, hasher crypto.Hash, digest []byte) ([]byte, error)
- func Sleep(ctx context.Context, ms int) error
- func ThumbprintJWK(pub crypto.PublicKey) (string, error)
- type Account
- type Authorization
- type Challenge
- type Client
- func (p *Client) Describe(ctx context.Context, url string) error
- func (p *Client) DoGet(ctx context.Context, url string) (*http.Response, error)
- func (p *Client) DoPost(ctx context.Context, url, ctype string, body io.Reader) (*http.Response, error)
- func (p *Client) GetAuthorization(ctx context.Context, url string) (*Authorization, error)
- func (p *Client) GetCertificate(ctx context.Context, url string) ([]byte, error)
- func (p *Client) GetDNS01Challenge(token string) (string, error)
- func (p *Client) GetKeyAuthorization(token string) (string, error)
- func (p *Client) GetNonce(ctx context.Context, url string) (string, error)
- func (p *Client) GetOrder(ctx context.Context, url string) (*Order, error)
- func (p *Client) LookupAccount(ctx context.Context) (*Account, error)
- func (p *Client) NewAccount(ctx context.Context, req map[string]interface{}) (*Account, error)
- func (p *Client) NewOrder(ctx context.Context, req map[string]interface{}) (string, *Order, error)
- func (p *Client) PostAuthorization(ctx context.Context, url string, req map[string]interface{}) (*Authorization, error)
- func (p *Client) PostChallenge(ctx context.Context, url string, req map[string]interface{}) (*Challenge, error)
- func (p *Client) PostFinalize(ctx context.Context, url string, req map[string]interface{}) (*Order, error)
- func (p *Client) PostJWS(ctx context.Context, url string, body interface{}) (*http.Response, error)
- func (p *Client) PostJWSWithRetry(ctx context.Context, url string, body interface{}) (*http.Response, error)
- func (p *Client) PutNonce(nonce string)
- type Continue
- type Directory
- type Error
- type Identifier
- type Lego
- type Order
- type Renew
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithResponse ¶
Types ¶
type Authorization ¶
type Authorization struct { Status string Expires string Identifier Identifier Challenges []Challenge }
type Client ¶
type Client struct { Logger *log.Logger Verbose bool HTTPClient *http.Client Key crypto.Signer Kid string Directory *Directory // contains filtered or unexported fields }
func (*Client) GetAuthorization ¶
func (*Client) GetCertificate ¶
func (*Client) GetKeyAuthorization ¶
func (*Client) LookupAccount ¶
func (*Client) NewAccount ¶
func (*Client) PostAuthorization ¶
func (*Client) PostChallenge ¶
func (*Client) PostFinalize ¶
func (*Client) PostJWSWithRetry ¶
type Identifier ¶
Click to show internal directories.
Click to hide internal directories.