utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSubdomain

func IsSubdomain(domain string, rootDomains map[string]bool) bool

Checks if a domain is a subdomain of any root domain in the global map

func JsonOutput added in v1.0.8

func JsonOutput(cert *x509.Certificate)

func PopulateLogs

func PopulateLogs(logListURL string) ([]types.CtLog, error)

func PopulateStaticLogs added in v1.4.0

func PopulateStaticLogs(logListURL string) ([]types.StaticCtLog, error)

PopulateStaticLogs parses the log list and returns static/tiled CT logs

Types

type StaticLogEntry added in v1.4.0

type StaticLogEntry struct {
	Description   string `json:"description"`
	LogID         string `json:"log_id"`
	MonitoringURL string `json:"monitoring_url"`
	SubmissionURL string `json:"submission_url"`
	URL           string `json:"url"`
	Key           string `json:"key"`
}

type StaticLogList added in v1.4.0

type StaticLogList struct {
	Operators []StaticOperator `json:"operators"`
}

Static CT Log types for parsing the log list JSON

type StaticOperator added in v1.4.0

type StaticOperator struct {
	Name      string           `json:"name"`
	Logs      []StaticLogEntry `json:"logs"`
	TiledLogs []StaticLogEntry `json:"tiled_logs"`
}

Jump to

Keyboard shortcuts

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