publisher

package
v0.0.0-...-98addd5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

Impl defines a Publisher

func New

func New(
	bundle []ct.ASN1Cert,
	logs []*Log,
	submissionTimeout time.Duration,
	logger blog.Logger,
	stats metrics.Scope,
	sa core.StorageAuthority,
) *Impl

New creates a Publisher that will submit certificates to any CT logs configured in CTConfig

func (*Impl) SubmitToCT

func (pub *Impl) SubmitToCT(ctx context.Context, der []byte) error

SubmitToCT will submit the certificate represented by certDER to any CT logs configured in pub.CT.Logs (AMQP RPC method).

func (*Impl) SubmitToSingleCT

func (pub *Impl) SubmitToSingleCT(
	ctx context.Context,
	logURL, logPublicKey string,
	der []byte) error

SubmitToSingleCT will submit the certificate represented by certDER to the CT log specified by log URL and public key (base64)

type Log

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

Log contains the CT client and signature verifier for a particular CT log

func NewLog

func NewLog(uri, b64PK string, logger blog.Logger) (*Log, error)

NewLog returns an initialized Log struct

Directories

Path Synopsis
Package publisher is a generated protocol buffer package.
Package publisher is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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