agent

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Week    = 7
	Month   = 30
	Quarter = 90
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRGenerator

type CSRGenerator interface {
	GenerateNewPEM(subject string, dnsNames []string) (key, csr []byte, err error)
}

type CertAgent

type CertAgent struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCertAgent

func NewCertAgent(apiKey string, period time.Duration, validity int) (*CertAgent, error)

func (*CertAgent) GetCertKeyPair

func (a *CertAgent) GetCertKeyPair(backoff int) (CertKeyPair, error)

func (*CertAgent) Run

func (a *CertAgent) Run(ctx context.Context, domain string)

type CertKeyPair

type CertKeyPair struct {
	ID      string
	CertPEM []byte
	Key     []byte
}

type SHA256RSAGenerator

type SHA256RSAGenerator struct{}

func (SHA256RSAGenerator) GenerateNewPEM

func (g SHA256RSAGenerator) GenerateNewPEM(subject string, dnsNames []string) (key, csr []byte, err error)

Jump to

Keyboard shortcuts

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