manager

package
v0.0.0-...-3cfc441 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages certificates for a sequence of domain names

func New

func New(ctx context.Context, addr, dir string, callback func(...string)) (*Manager, error)

Create a new certificate manager using the specified address and directory.

func (*Manager) Add

func (m *Manager) Add(ctx context.Context, domains ...string) error

Add adds the specified domains to the manager.

func (*Manager) Cert

func (m *Manager) Cert(domain string) string

Cert determines the absolute filename for a certificate.

func (*Manager) Close

func (m *Manager) Close()

Close the certificate manager.

func (*Manager) Key

func (m *Manager) Key(domain string) string

Key determines the absolute filename for a private key.

func (*Manager) Remove

func (m *Manager) Remove(ctx context.Context, domains ...string) error

Remove removes the specified domains from the manager.

Jump to

Keyboard shortcuts

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