Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupForwarding ¶
SetupForwarding contacts a local gateway via UPnP and instructs it to forward externalPort to localPort on the internal local IP address discovered.
Types ¶
type ACMEClient ¶
type ACMEClient struct { DNS *DNSClient WorkDirectory string // contains filtered or unexported fields }
ACMEClient is incapsulating needed information to access ACME and Google Cloud DNS
func NewACMEClient ¶
func NewACMEClient(ctx context.Context, directory string) (*ACMEClient, error)
NewACMEClient creates an ACME account, if necessary, and writes it's key and config to disk
func (*ACMEClient) CheckOrRefreshCertificate ¶
func (c *ACMEClient) CheckOrRefreshCertificate(ctx context.Context, domains ...string) error
CheckOrRefreshCertificate checks expiration date of the certificate (if it exists), and renews it if necessary
func (*ACMEClient) GetDomainsCertpairPath ¶
func (c *ACMEClient) GetDomainsCertpairPath(domains ...string) (string, string)
GetDomainsCertpairPath returns paths to a certificate and key for domains, based on WorkDirectory
type DNSClient ¶
type DNSClient struct {
// contains filtered or unexported fields
}
DNSClient is a wrapper around Google Cloud DNS client.
func NewDNSClient ¶
NewDNSClient connects new DNSClient and prepopulates some fields.