Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gravel ¶
type Gravel struct {
// The internal DNS server used for integration and record serving.
DnsServer *dns.IntegrationServer
// Internal certificate database.
Database db.GravelStore
// Verification Authority implementation.
VerificationAuthority *va.VerificationAuthority
// Certificate Authority for a given Gravel instance.
CertificateAuthority *ca.CertificateAuthority
// Web Front End for a given Gravel instance.
WebFrontEnd *wfe.WebFrontEnd
// Internal certificate manager for clients, etc.
CertificateManager ca.GravelCertificateChain
// HTTP integration web server for Let's Encrypt.
CertificateServer http.Server
// Logger
Logger *logrus.Logger
TestRecords map[string]string
Client *http.Client
Opts *GravelOpts
// contains filtered or unexported fields
}
Integration environment for Let's Encrypt.
func (*Gravel) StartDnsServer ¶
func (g *Gravel) StartDnsServer()
func (*Gravel) StartWebServer ¶
func (g *Gravel) StartWebServer()
Start the integration harness web server.
type GravelOpts ¶
type GravelOpts struct {
// Options used for the internal datastore.
DatabaseOpts *db.DatabaseOpts
// Options used for the integration DNS server
DnsOpts *dns.IntegrationServerOpts
// Options used for the Verification Authority.
VAOpts *va.VerificationAuthorityOpts
// Options used for configuring the Certificate Authority.
CAOpts *ca.CertificateAuthorityOpts
// Options used for configuring the Web Front End.
WfeOpts *wfe.WebFrontEndOpts
// Integrate the DNS instance with a testing suite.
EnableTestIntegration *testing.T
// Set to true if you want records automatically generated by Gravel to be added to the DNS server for automatic
// verification.
AutoUpdateAuthZRecords bool
// Address on which Gravel should listen.
ListenAddress string
// Logger to use.
Logger *logrus.Logger
}
Options used for configuring the integration environment.
func NewDefaultGravelOpts ¶
func NewDefaultGravelOpts() *GravelOpts
Generate a new set of default options for an integration environment.
Click to show internal directories.
Click to hide internal directories.