client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(userConfig configuration.UserConfig) (lego.Client, error)

Create a new client to request certificate

func RequestCertificate

func RequestCertificate(config configuration.UserConfig) (*certificate.Resource, error)

Request certificate according to user configuration

Types

type User

type User struct {
	Email        string
	Registration *registration.Resource
	Key          crypto.PrivateKey
}

User type that implements acme.User

Implements the following methods:

  • User.GetEmail()
  • User.GetRegistration()
  • User.GetPrivateKey()

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