types

package module
v0.0.0-...-c4211ba Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTLogMetadata

type CTLogMetadata struct {
	CRLiteEnrolled bool   `json:"crlite_enrolled"`
	Description    string `json:"description"`
	Key            string `json:"key"`
	LogID          string `json:"logID"`
	MMD            int    `json:"mmd"`
	URL            string `json:"url"`
}

The CTLogMetadata struct contains the information that we receive * `ct-logs` Remote Settings collection.

func (*CTLogMetadata) MetricKey

func (o *CTLogMetadata) MetricKey() string

type CTLogState

type CTLogState struct {
	LogID          string    `db:"logID"`          // The log's RFC 6962 LogID
	MMD            uint64    `db:"mmd"`            // The log's maximum merge delay in seconds
	ShortURL       string    `db:"url"`            // URL to the log
	MinEntry       uint64    `db:"minEntry"`       // The smallest index we've downloaded
	MaxEntry       uint64    `db:"maxEntry"`       // The largest index we've downloaded
	MinTimestamp   uint64    `db:"minTimestamp"`   // Unix timestamp of the earliest entry we've downloaded
	MaxTimestamp   uint64    `db:"maxTimestamp"`   // Unix timestamp of the most recent entry we've downloaded
	LastUpdateTime time.Time `db:"lastUpdateTime"` // Date when we completed the last update
}

The CTLogState struct contains information necessary to describe a filter's * coverage of a CT log.

func (*CTLogState) String

func (o *CTLogState) String() string

type ExpDate

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

func NewExpDate

func NewExpDate(s string) (ExpDate, error)

func NewExpDateFromTime

func NewExpDateFromTime(t time.Time) ExpDate

func (ExpDate) ExpireTime

func (e ExpDate) ExpireTime() time.Time

func (ExpDate) ID

func (e ExpDate) ID() string

func (ExpDate) IsExpiredAt

func (e ExpDate) IsExpiredAt(t time.Time) bool

func (ExpDate) String

func (e ExpDate) String() string

func (ExpDate) Unix

func (e ExpDate) Unix() int64

type Extension

type Extension struct {
	Id       asn1.ObjectIdentifier
	Critical bool `asn1:"optional"`
	Value    []byte
}

type Issuer

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

func NewIssuer

func NewIssuer(aCert *x509.Certificate) Issuer

func NewIssuerFromString

func NewIssuerFromString(aStr string) Issuer

func (*Issuer) ID

func (o *Issuer) ID() string

func (*Issuer) MarshalJSON

func (o *Issuer) MarshalJSON() ([]byte, error)

func (*Issuer) UnmarshalJSON

func (o *Issuer) UnmarshalJSON(data []byte) error

type IssuerAndDate

type IssuerAndDate struct {
	ExpDate ExpDate
	Issuer  Issuer
}

func (*IssuerAndDate) String

func (t *IssuerAndDate) String() string

type IssuerCrlMap

type IssuerCrlMap map[string]map[string]bool

func (IssuerCrlMap) Merge

func (self IssuerCrlMap) Merge(other IssuerCrlMap)

type IssuerCrlUrlPaths

type IssuerCrlUrlPaths struct {
	Issuer      Issuer
	IssuerDN    string
	CrlUrlPaths []UrlPath
}

type IssuerCrlUrls

type IssuerCrlUrls struct {
	Issuer Issuer
	Urls   []url.URL
}

type IssuerDate

type IssuerDate struct {
	Issuer   Issuer
	ExpDates []ExpDate
}

type RevokedCertificateWithRawSerial

type RevokedCertificateWithRawSerial struct {
	Raw            asn1.RawContent
	SerialNumber   asn1.RawValue
	RevocationTime time.Time
	Extensions     []Extension `asn1:"optional"`
}

func (RevokedCertificateWithRawSerial) Reason

func (RevokedCertificateWithRawSerial) SerialAndReason

func (c RevokedCertificateWithRawSerial) SerialAndReason() (SerialAndReason, error)

type SPKI

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

func (SPKI) ID

func (o SPKI) ID() string

func (SPKI) Sha256DigestURLEncodedBase64

func (o SPKI) Sha256DigestURLEncodedBase64() string

func (SPKI) String

func (o SPKI) String() string

type Serial

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

func NewSerial

func NewSerial(aCert *x509.Certificate) Serial

func NewSerialFromBinaryString

func NewSerialFromBinaryString(s string) (Serial, error)

func NewSerialFromBytes

func NewSerialFromBytes(b []byte) Serial

func NewSerialFromHex

func NewSerialFromHex(s string) Serial

func (Serial) BinaryString

func (s Serial) BinaryString() string

func (Serial) HexString

func (s Serial) HexString() string

func (Serial) MarshalJSON

func (s Serial) MarshalJSON() ([]byte, error)

func (Serial) String

func (s Serial) String() string

func (*Serial) UnmarshalJSON

func (s *Serial) UnmarshalJSON(data []byte) error

type SerialAndReason

type SerialAndReason struct {
	Serial Serial
	Reason uint8
}

A serial number with a revocation reason code

type TBSCertificateListWithRawSerials

type TBSCertificateListWithRawSerials struct {
	Raw                 asn1.RawContent
	Version             int `asn1:"optional,default:0"`
	Signature           asn1.RawValue
	Issuer              asn1.RawValue
	ThisUpdate          time.Time
	NextUpdate          time.Time                         `asn1:"optional"`
	RevokedCertificates []RevokedCertificateWithRawSerial `asn1:"optional"`
}

func DecodeRawTBSCertList

func DecodeRawTBSCertList(data []byte) (*TBSCertificateListWithRawSerials, error)

type UrlPath

type UrlPath struct {
	Url  url.URL
	Path string
}

Jump to

Keyboard shortcuts

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