Documentation
¶
Index ¶
- func NewClient(settings config.Settings, user *User, s3Service *s3.S3, ...) (*acme.Client, error)
- type DNSProvider
- type Distribution
- func (d *Distribution) Create(callerReference string, domains []string, origin, path string, ...) (*cloudfront.Distribution, error)
- func (d *Distribution) Delete(distId string) (bool, error)
- func (d *Distribution) Disable(distId string) error
- func (d *Distribution) Get(distId string) (*cloudfront.Distribution, error)
- func (d *Distribution) ListDistributions(callback func(cloudfront.DistributionSummary) bool) error
- func (d *Distribution) SetCertificate(distId, certId string) error
- func (d *Distribution) SetCertificateAndCname(distId, certId string, domains []string) error
- func (d *Distribution) Update(distId string, domains []string, origin, path string, insecureOrigin bool, ...) (*cloudfront.Distribution, error)
- type DistributionIface
- type HTTPProvider
- type Headers
- type Iam
- type IamIface
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DNSProvider ¶
type DNSProvider struct{}
func (*DNSProvider) CleanUp ¶
func (p *DNSProvider) CleanUp(domain, token, keyAuth string) error
func (*DNSProvider) Present ¶
func (p *DNSProvider) Present(domain, token, keyAuth string) error
type Distribution ¶
type Distribution struct {
Settings config.Settings
Service *cloudfront.CloudFront
}
func (*Distribution) Create ¶
func (d *Distribution) Create(callerReference string, domains []string, origin, path string, insecureOrigin bool, forwardedHeaders Headers, forwardCookies bool, tags map[string]string) (*cloudfront.Distribution, error)
func (*Distribution) Disable ¶
func (d *Distribution) Disable(distId string) error
func (*Distribution) Get ¶
func (d *Distribution) Get(distId string) (*cloudfront.Distribution, error)
func (*Distribution) ListDistributions ¶
func (d *Distribution) ListDistributions(callback func(cloudfront.DistributionSummary) bool) error
func (*Distribution) SetCertificate ¶
func (d *Distribution) SetCertificate(distId, certId string) error
func (*Distribution) SetCertificateAndCname ¶
func (d *Distribution) SetCertificateAndCname(distId, certId string, domains []string) error
func (*Distribution) Update ¶
func (d *Distribution) Update(distId string, domains []string, origin, path string, insecureOrigin bool, forwardedHeaders Headers, forwardCookies bool) (*cloudfront.Distribution, error)
type DistributionIface ¶
type DistributionIface interface {
Create(callerReference string, domains []string, origin, path string, insecureOrigin bool, forwardedHeaders Headers, forwardCookies bool, tags map[string]string) (*cloudfront.Distribution, error)
Update(distId string, domains []string, origin, path string, insecureOrigin bool, forwardedHeaders Headers, forwardCookies bool) (*cloudfront.Distribution, error)
Get(distId string) (*cloudfront.Distribution, error)
SetCertificate(distId, certId string) error
SetCertificateAndCname(distId, certId string, domains []string) error
Disable(distId string) error
Delete(distId string) (bool, error)
ListDistributions(callback func(cloudfront.DistributionSummary) bool) error
}
type HTTPProvider ¶
func (*HTTPProvider) CleanUp ¶
func (p *HTTPProvider) CleanUp(domain, token, keyAuth string) error
func (*HTTPProvider) Present ¶
func (p *HTTPProvider) Present(domain, token, keyAuth string) error
type Iam ¶
func (*Iam) DeleteCertificate ¶
func (*Iam) ListCertificates ¶
func (i *Iam) ListCertificates(callback func(iam.ServerCertificateMetadata) bool) error
func (*Iam) UploadCertificate ¶
type User ¶
type User struct {
Email string
Registration *acme.RegistrationResource
// contains filtered or unexported fields
}
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (u *User) GetRegistration() *acme.RegistrationResource
func (*User) SetPrivateKey ¶
func (u *User) SetPrivateKey(key crypto.PrivateKey)
Click to show internal directories.
Click to hide internal directories.