acme

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Emails      string
	Endpoint    string
	TermsAgreed bool
}

Account ...

type Cache

type Cache interface {
	ClientResolver
	ServerResolver
	SignerResolver
}

Cache ...

type Client

type Client interface {
	Sign(dnsnames []string) (crt, key []byte, err error)
}

Client ...

func NewClient

func NewClient(logger types.Logger, resolver ClientResolver, account *Account) (Client, error)

NewClient ...

type ClientResolver

type ClientResolver interface {
	GetKey() (crypto.Signer, error)
	SetToken(domain string, uri, token string) error
}

ClientResolver ...

type Server

type Server interface {
	Listen(stopCh chan struct{}) error
}

Server ...

func NewServer

func NewServer(logger types.Logger, socket string, resolver ServerResolver) Server

NewServer ...

type ServerResolver

type ServerResolver interface {
	GetToken(domain, uri string) string
}

ServerResolver ...

type Signer

type Signer interface {
	AcmeAccount(endpoint, emails string, termsAgreed bool)
	AcmeConfig(expiring time.Duration)
	HasAccount() bool
	Notify(item interface{}) error
}

Signer ...

func NewSigner

func NewSigner(logger types.Logger, cache Cache, metrics types.Metrics) Signer

NewSigner ...

type SignerResolver

type SignerResolver interface {
	GetTLSSecretContent(secretName string) (*TLSSecret, error)
	SetTLSSecretContent(secretName string, pemCrt, pemKey []byte) error
}

SignerResolver ...

type TLSSecret

type TLSSecret struct {
	Crt *x509.Certificate
}

TLSSecret ...

Directories

Path Synopsis
x
acme
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec.
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec.

Jump to

Keyboard shortcuts

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