utils

package
v0.0.0-...-fd058b2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: CC0-1.0 Imports: 17 Imported by: 3

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 IamUtils

type IamUtils struct {
	Service iamiface.IAMAPI
}

func (*IamUtils) DeleteCertificate

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

func (*IamUtils) ListCertificates

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

func (*IamUtils) UploadCertificate

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

type IamUtilsIface

type IamUtilsIface 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
JackTT - Gopher 🇻🇳