utils

package
v0.0.0-...-88c1bac Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: CC0-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(settings config.Settings, user *User, s3Service *s3.S3, excludes []acme.Challenge) (*acme.Client, error)

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

func (*DNSProvider) Timeout

func (p *DNSProvider) Timeout() (time.Duration, time.Duration)

type HTTPProvider

type HTTPProvider struct {
	Settings config.Settings
	Service  *s3.S3
}

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

type Iam struct {
	Service *iam.IAM
}

func (*Iam) DeleteCertificate

func (i *Iam) DeleteCertificate(name string) error

func (*Iam) ListCertificates

func (i *Iam) ListCertificates(path string, callback func(iam.ServerCertificateMetadata) bool) error

func (*Iam) UploadCertificate

func (i *Iam) UploadCertificate(name, path string, cert acme.CertificateResource) (string, string, error)

type IamIface

type IamIface interface {
	UploadCertificate(name, path string, cert acme.CertificateResource) (string, string, error)
	DeleteCertificate(name string) error
	ListCertificates(path string, callback func(iam.ServerCertificateMetadata) bool) error
}

type User

type User struct {
	Email        string
	Registration *acme.RegistrationResource
	// contains filtered or unexported fields
}

func (*User) GetEmail

func (u *User) GetEmail() string

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)

Jump to

Keyboard shortcuts

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