certsign

package
v2.0.0-...-54ff1d7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertSigner

type CertSigner struct {
	ResultChan chan SigningResult
	// contains filtered or unexported fields
}

func NewCertSigner

func NewCertSigner(puppetConfig puppetconfig.PuppetConfig, log *log.Logger, watcher *interfaces.FsnotifyWatcher, notifyCallback func(message string)) (*CertSigner, error)

func (*CertSigner) Clean

func (ctx *CertSigner) Clean(hostname string) <-chan SigningResult

func (*CertSigner) ProcessingBacklogLength

func (ctx *CertSigner) ProcessingBacklogLength() int

func (*CertSigner) Shutdown

func (ctx *CertSigner) Shutdown()

func (*CertSigner) Sign

func (ctx *CertSigner) Sign(hostname string, cleanExistingCert bool) <-chan SigningResult

SigningResult channel will receive two messages if cleanExistingCert is true - one when cert is cleaned and one when cert is signed

type CertSignerInterface

type CertSignerInterface interface {
	Sign(hostname string, cleanExistingCert bool) <-chan SigningResult
}

type SigningResult

type SigningResult struct {
	Action  string
	Success bool
	Message string
}

Jump to

Keyboard shortcuts

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