certManager

package
v0.0.0-...-48b1b68 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AcmeType = "acme"

AcmeType define acme type certificate manager

View Source
const FileType = "file"

FileType define static file type certificate manager

Variables

This section is empty.

Functions

This section is empty.

Types

type CertManager

type CertManager interface {
	GetClientTLSConfig() *tls.Config
	GetServerTLSConfig() *tls.Config
	Close()
}

CertManager represent general CertManager in use

func NewCertManager

func NewCertManager(config Config) (CertManager, error)

NewCertManager create new CertManager

func NewOcfCertManager

func NewOcfCertManager(config OcfConfig) (CertManager, error)

NewOcfCertManager create new CertManager

type Config

type Config struct {
	Type string      `envconfig:"TYPE" default:"acme"`
	Acme acme.Config `envconfig:"ACME"`
	File file.Config `envconfig:"FILE"`
}

Config provides configuration of a file/acme based Certificate manager

type OcfConfig

type OcfConfig struct {
	Type string      `envconfig:"TYPE" default:"acme"`
	Acme ocf.Config  `envconfig:"ACME"`
	File file.Config `envconfig:"FILE"`
}

OcfConfig provides configuration of a file/acme based Certificate manager

Directories

Path Synopsis
ocf

Jump to

Keyboard shortcuts

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