Documentation ¶
Index ¶
- type CloudDNSComplete
- type LBUpload
- type Storage
- func (s Storage) DeleteAuthorization(domain string) (err error)
- func (s Storage) DeleteCert(domain string) (err error)
- func (s Storage) LoadAccount(acct interface{}) (err error)
- func (s Storage) LoadAuthorization(domain string, authz interface{}) (err error)
- func (s Storage) LoadCert(domain string, cert *x509.Certificate) (err error)
- func (s Storage) LoadCertFullChain(domain string, cert *x509.Certificate) (err error)
- func (s Storage) LoadCertIssuer(domain string, cert *x509.Certificate) (err error)
- func (s Storage) LoadCertKey(domain string, key *jwk.RsaPrivateKey) (err error)
- func (s Storage) LoadKey(key *jwk.RsaPrivateKey) (err error)
- func (s Storage) SaveAccount(acct interface{}) (err error)
- func (s Storage) SaveAuthorization(domain string, authz interface{}) (err error)
- func (s Storage) SaveCert(domain string, issuerCert, myCert *x509.Certificate) (err error)
- func (s Storage) SaveCertKey(domain string, k *jwk.RsaPrivateKey) (err error)
- func (s Storage) SaveKey(key *jwk.RsaPrivateKey) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudDNSComplete ¶
type CloudDNSComplete struct { Project string // GCP project name, like "foobar-123" Service *dns.Service // Google API for CloudDNS. Must be properly OAuth'ed Zone string // GCP CloudDNS zone name }
func NewDNS ¶
func NewDNS(s *dns.Service, projectID, zoneName string) *CloudDNSComplete
NewDNS creates a service that attempts to fulfill the dns-01 challenge using Google CloudDNS.
func (*CloudDNSComplete) Cleanup ¶
func (c *CloudDNSComplete) Cleanup(domain, token string) (err error)
func (*CloudDNSComplete) Complete ¶
func (c *CloudDNSComplete) Complete(domain, token string) (err error)
Complete attempts to fulfill a dns-01 challenge using Google CloudDNS.
type LBUpload ¶
type LBUpload struct { Project string // GCP project name, like "foobar-123" Service *compute.Service // Google API for Compute Engine. Must be properly OAuth'ed }
func NewLBUpload ¶
func (*LBUpload) Upload ¶
func (cu *LBUpload) Upload(name string, certs []*x509.Certificate, certkey *rsa.PrivateKey) (err error)
type Storage ¶
type Storage struct { BucketName string // GCP bucket name, most likely "acme" Client *storage.Client ID string // Email of the user Project string // GCP project name, like "foobar-123" }
func (Storage) DeleteAuthorization ¶
func (Storage) DeleteCert ¶
func (Storage) LoadAccount ¶
Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`
func (Storage) LoadAuthorization ¶
Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Authorization`
func (Storage) LoadCert ¶
func (s Storage) LoadCert(domain string, cert *x509.Certificate) (err error)
func (Storage) LoadCertFullChain ¶
func (s Storage) LoadCertFullChain(domain string, cert *x509.Certificate) (err error)
func (Storage) LoadCertIssuer ¶
func (s Storage) LoadCertIssuer(domain string, cert *x509.Certificate) (err error)
func (Storage) LoadCertKey ¶
func (s Storage) LoadCertKey(domain string, key *jwk.RsaPrivateKey) (err error)
func (Storage) SaveAccount ¶
Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`
func (Storage) SaveAuthorization ¶
Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a `acmeagent.Authorization`
func (Storage) SaveCert ¶
func (s Storage) SaveCert(domain string, issuerCert, myCert *x509.Certificate) (err error)
func (Storage) SaveCertKey ¶
func (s Storage) SaveCertKey(domain string, k *jwk.RsaPrivateKey) (err error)