gcp

package
v0.0.0-...-5d42ba7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 NewLBUpload(s *compute.Service, projectID string) *LBUpload

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 NewStorage

func NewStorage(cl *storage.Client, projectID, email, bucketName string) *Storage

func (Storage) DeleteAuthorization

func (s Storage) DeleteAuthorization(domain string) (err error)

func (Storage) DeleteCert

func (s Storage) DeleteCert(domain string) (err error)

func (Storage) LoadAccount

func (s Storage) LoadAccount(acct interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`

func (Storage) LoadAuthorization

func (s Storage) LoadAuthorization(domain string, authz interface{}) (err error)

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) LoadKey

func (s Storage) LoadKey(key *jwk.RsaPrivateKey) (err error)

func (Storage) SaveAccount

func (s Storage) SaveAccount(acct interface{}) (err error)

Parameter `authz` is an interface{} to avoid circular dependencies. In reality this must be a pointer to `acmeagent.Account`

func (Storage) SaveAuthorization

func (s Storage) SaveAuthorization(domain string, authz interface{}) (err error)

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)

func (Storage) SaveKey

func (s Storage) SaveKey(key *jwk.RsaPrivateKey) (err error)

Jump to

Keyboard shortcuts

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