cert

package
v0.0.0-...-e55c872 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRepository

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

type Holder

type Holder interface {
	GetCertificate() (*tls.Certificate, error)
}

func NewRefreshingCertHolder

func NewRefreshingCertHolder(manager Manager) Holder

type LegoManager

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

func (*LegoManager) RetrieveCertificate

func (l *LegoManager) RetrieveCertificate() (*tls.Certificate, error)

type Manager

type Manager interface {
	RetrieveCertificate() (*tls.Certificate, error)
}

func NewLegoManager

func NewLegoManager(repo Repository, cfg config.ProxyConfig) Manager

type MyUser

type MyUser struct {
	Email        string
	Registration *registration.Resource
	// contains filtered or unexported fields
}

func (*MyUser) GetEmail

func (u *MyUser) GetEmail() string

func (*MyUser) GetPrivateKey

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

func (MyUser) GetRegistration

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

type RefreshingCertHolder

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

func (*RefreshingCertHolder) GetCertificate

func (r *RefreshingCertHolder) GetCertificate() (*tls.Certificate, error)

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

func NewFileRepo

func NewFileRepo(dir string) Repository

Jump to

Keyboard shortcuts

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