providers

package
v0.0.0-...-fd6c280 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitProviders

func InitProviders(tlsconfig *tls.Config, configChannel *chan int, configuration *configuration.Configuration)

InitProviders function allow to init certificates and be able to exploit data as needed

Types

type AccountAcmeFile

type AccountAcmeFile struct {
	Email        string               `json:"Email"`
	KeyType      string               `json:"KeyType"`
	PrivateKey   string               `json:"PrivateKey"`
	Registration RegistrationAcmeFile `json:"Registration"`
}

AccountAcmeFile structure is composed of Email, KeyType, PrivateKey, Registration

type AcmeFile

type AcmeFile struct {
	Account      AccountAcmeFile       `json:"Account"`
	Certificates []CertificateAcmeFile `json:"Certificates"`
}

AcmeFile structure is Træfik acme.json hierarchy

type BodyAcmeFile

type BodyAcmeFile struct {
	Contact []string `json:"contact"`
	Status  string   `json:"status"`
}

BodyAcmeFile structure is composed of Contact, Status

type Certificate

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

Certificate contains key:certificate combo

type CertificateAcmeFile

type CertificateAcmeFile struct {
	Certificate string         `json:"Certificate"`
	Domain      DomainAcmeFile `json:"Domain"`
	Key         string         `json:"Key"`
}

CertificateAcmeFile structure is composed of Certificate, DomainAcmeFile and Key

type CommonProvider

type CommonProvider struct {
	Certificates map[string]Certificate
	// contains filtered or unexported fields
}

CommonProvider contains a Certificate map

func (*CommonProvider) InitWatcher

func (c *CommonProvider) InitWatcher(tlsconfig *tls.Config, configChannel *chan int)

InitWatcher will start watcher on one ssl aggregator file

func (*CommonProvider) LoadFromConfigFile

func (c *CommonProvider) LoadFromConfigFile(tlsconfig *tls.Config, configChannel *chan int)

LoadFromConfigFile load SSL certs from one file by provider

type DomainAcmeFile

type DomainAcmeFile struct {
	Main string   `json:"Main"`
	SANs []string `json:"SANs"`
}

DomainAcmeFile structure is composed of DNS Main and SANs

type RegistrationAcmeFile

type RegistrationAcmeFile struct {
	Body BodyAcmeFile `json:"body"`
	URI  string       `json:"uri"`
}

RegistrationAcmeFile structure is composed of Body, URI

Jump to

Keyboard shortcuts

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