ctlog

package
v0.0.0-...-1dc6284 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ctlog contains data structures and methods to do with CT Log metadata that is needed by Monologue.

TODO(katjoyce): Try to come up with a better package name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Name      string
	URL       string
	PublicKey crypto.PublicKey
	LogID     logid.LogID
	MMD       time.Duration

	// TemporalInterval represents the interval in which a certificate's
	// NotAfter field must fall to be accepted by the Log (as specified by the
	// Log Operators).
	// TemporalInterval.Start and TemporalInterval.End are both to second
	// precision.  Any smaller units may be ignored/discarded.
	TemporalInterval *interval.Interval
}

Log contains metadata about a CT Log that is needed by Monologue.

func New

func New(url, name, b64PubKey string, mmd time.Duration, i *interval.Interval) (*Log, error)

New creates a Log structure, populating the fields appropriately.

If the Log is not a temporal shard, interval should be nil.

TODO(katjoyce): replace this implementation with something less hacky that takes log details from a log list struct based on the new Log list JSON schema.

Jump to

Keyboard shortcuts

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