certificates

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManager

type CertificateManager struct {
	// contains filtered or unexported fields
}

CertificateManager manages certificates: issue, renew, ....

func GetCertificateManager

func GetCertificateManager() (*CertificateManager, error)

GetCertificateManager creates CertificateManager instance

func (*CertificateManager) Issue

Issue issues a certificate

func (*CertificateManager) Upload added in v0.1.2

Upload deploys an existed certificate

type ChallengeType

type ChallengeType interface {
	GetParams() []string
}

ChallengeType should be implemented by object to specify challenge type during certificate issuence

type DNSChallengeType

type DNSChallengeType struct {
	Provider string
}

DNSChallengeType implements http challenge type

func (*DNSChallengeType) GetParams

func (ct *DNSChallengeType) GetParams() []string

GetParams retuns the list of parameters for dns challenge type

type HTTPChallengeType

type HTTPChallengeType struct {
	HTTPPort,
	TLSPort int
	WebRoot string
}

HTTPChallengeType implements http challenge type

func (*HTTPChallengeType) GetParams

func (ct *HTTPChallengeType) GetParams() []string

GetParams retuns the list of parameters for http challenge type

type Handler

type Handler struct{}

Handler handles requests to the module

func (*Handler) Handle

func (h *Handler) Handle(request router.Request) (interface{}, error)

Handle handles request to the module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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