le_providers

package
Version: v0.0.0-...-1e18dc2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: CC0-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcmeClient

type AcmeClient struct {
	Client      *lego.Client
	Resolvers   map[string]string
	DNSProvider challenge.Provider
	AcmeConfig  *lego.Config
	// contains filtered or unexported fields
}

Implementation and helper struct for working with custom ACME resources.

func NewAcmeClient

func NewAcmeClient(client *http.Client, resolvers map[string]string, config *lego.Config, provider challenge.Provider, logger lager.Logger) (*AcmeClient, error)

NewAcmeClient generates a new client with the target config.

type DomainMessenger

type DomainMessenger struct {
	gorm.Model
	Domain  string
	Token   string
	KeyAuth string

	// How long is left until the domain service needs to be authenticated.
	ValidUntil time.Time
}

Wrapper for storing the DNS instructions.

func (DomainMessenger) String

func (d DomainMessenger) String() string

String wraps a tabwriter into a string format for ease of use.

type ServiceBrokerDNSProvider

type ServiceBrokerDNSProvider struct {
	// Handler for sharing the DNS resolver records.
	Handler chan DomainMessenger

	// Db access
	Db *gorm.DB
}

Internal DNS provider.

func (ServiceBrokerDNSProvider) CleanUp

func (s ServiceBrokerDNSProvider) CleanUp(domain, token, keyAuth string) error

todo (mxplusb): this should remove old/solved records.

func (ServiceBrokerDNSProvider) Present

func (s ServiceBrokerDNSProvider) Present(domain, token, keyAuth string) error

Present our credentials to the handler.

func (ServiceBrokerDNSProvider) Timeout

func (s ServiceBrokerDNSProvider) Timeout() (timeout, interval time.Duration)

Set our default timeout to be 24 hours and check every 3 minutes.

Source Files

Jump to

Keyboard shortcuts

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