provider

package
v0.0.0-...-8f55651 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LetsEncrypt

type LetsEncrypt struct {
	Provider
	// contains filtered or unexported fields
}

func (*LetsEncrypt) CA

func (p *LetsEncrypt) CA() ([]byte, error)

func (*LetsEncrypt) Config

func (p *LetsEncrypt) Config() map[string]string

func (*LetsEncrypt) Del

func (p *LetsEncrypt) Del(name string, data []byte) error

func (*LetsEncrypt) For

func (p *LetsEncrypt) For(name string) bool

func (*LetsEncrypt) Get

func (p *LetsEncrypt) Get(name string, options map[string]string) ([]byte, []byte, error)

func (LetsEncrypt) ID

func (p LetsEncrypt) ID() string

func (*LetsEncrypt) SetChallengeProvider

func (p *LetsEncrypt) SetChallengeProvider(providerId string) error

func (*LetsEncrypt) Tune

func (p *LetsEncrypt) Tune(options map[string]interface{}) (err error)

type LetsEncryptTarget

type LetsEncryptTarget struct {
	// contains filtered or unexported fields
}

type LetsEncryptUser

type LetsEncryptUser struct {
	// contains filtered or unexported fields
}

func (LetsEncryptUser) GetEmail

func (u LetsEncryptUser) GetEmail() string

func (LetsEncryptUser) GetPrivateKey

func (u LetsEncryptUser) GetPrivateKey() crypto.PrivateKey

func (LetsEncryptUser) GetRegistration

func (u LetsEncryptUser) GetRegistration() *registration.Resource

type Local

type Local struct {
	Provider
	// contains filtered or unexported fields
}

func (*Local) CA

func (p *Local) CA() ([]byte, error)

func (*Local) Config

func (p *Local) Config() map[string]string

func (*Local) Del

func (p *Local) Del(name string, data []byte) error

func (*Local) For

func (p *Local) For(name string) bool

func (*Local) Get

func (p *Local) Get(name string, options map[string]string) ([]byte, []byte, error)

func (Local) ID

func (p Local) ID() string

func (*Local) Tune

func (p *Local) Tune(options map[string]interface{}) (err error)

type Provider

type Provider interface {
	ID() string
	Tune(options map[string]interface{}) error
	For(name string) bool
	Get(name string, options map[string]string) ([]byte, []byte, error)
	Del(name string, data []byte) error
	CA() ([]byte, error)
	Config() map[string]string
}

func GetByID

func GetByID(id string, providers []*Provider) (results []*Provider)

func GetByTargetName

func GetByTargetName(name string, options map[string]string, providers []*Provider) *Provider

func Tune

func Tune(id string, options map[string]interface{}) (*Provider, error)

Jump to

Keyboard shortcuts

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