Documentation
¶
Index ¶
Constants ¶
const TileSize = 256
Variables ¶
This section is empty.
Functions ¶
func ConvertTileLeafToRawLogEntry ¶
func ConvertTileLeafToRawLogEntry(leaf TileLeaf, index uint64) *ct.RawLogEntry
ConvertTileLeafToRawLogEntry converts a TileLeaf to ct.RawLogEntry for compatibility
func EncodeTilePath ¶
EncodeTilePath encodes a tile index into the proper path format
func ParseCertstreamEntry ¶ added in v1.8.0
func ParseCertstreamEntry(rawEntry *ct.RawLogEntry, operatorName, logname, ctURL string) (models.Entry, error)
ParseCertstreamEntry creates an Entry from a ct.RawLogEntry.
Types ¶
type TileLeaf ¶
type TileLeaf struct {
Timestamp uint64
EntryType uint16
X509Entry []byte // For X.509 certificates
PrecertEntry []byte // For precertificates
Chain [][]byte
IssuerKeyHash [32]byte
}
TileLeaf represents a single entry in a tile
func FetchTile ¶
func FetchTile(ctx context.Context, client *http.Client, baseURL string, tileIndex uint64, partialWidth uint64) ([]TileLeaf, error)
FetchTile fetches a tile from the tiled CT log using the provided client. If partialWidth > 0, fetches a partial tile with that width (1-255).
func ParseTileData ¶
ParseTileData parses the binary tile data into TileLeaf entries using cryptobyte
type TiledCheckpoint ¶
TiledCheckpoint represents the checkpoint information from a tiled CT log
func FetchCheckpoint ¶
func FetchCheckpoint(ctx context.Context, client *http.Client, baseURL string) (*TiledCheckpoint, error)
FetchCheckpoint fetches the checkpoint from a tiled CT log using the provided client
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher describes a component that watches for new certificates in a CT log.
func NewWatcher ¶ added in v1.5.0
NewWatcher creates a new Watcher.
func (*Watcher) CreateIndexFile ¶
CreateIndexFile creates a ct_index.json file based on the current STHs of all availble logs.