Documentation
¶
Index ¶
- Constants
- type CTStorage
- func (cts *CTStorage) Add(ctx context.Context, entry *ctonly.Entry) (tessera.IndexFuture, error)
- func (cts *CTStorage) AddIssuerChain(ctx context.Context, chain []*x509.Certificate) error
- func (cts *CTStorage) DedupFuture(ctx context.Context, f tessera.IndexFuture) (rfc6962.CertificateTimestamp, error)
- type CTStorageOptions
- type CreateStorage
- type IssuerStorage
- type KV
- type RootsStorage
Constants ¶
View Source
const ( RootsPrefix = "roots/" DefaultAwaiterPollInterval = 200 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CTStorage ¶
type CTStorage struct {
// contains filtered or unexported fields
}
CTStorage implements ct.Storage and tessera.LogReader.
func NewCTStorage ¶
func NewCTStorage(ctx context.Context, opts *CTStorageOptions) (*CTStorage, error)
NewCTStorage instantiates a CTStorage object.
func (*CTStorage) AddIssuerChain ¶
AddIssuerChain stores every chain certificate under its sha256.
If an object is already stored under this hash, continues.
func (*CTStorage) DedupFuture ¶ added in v0.1.1
func (cts *CTStorage) DedupFuture(ctx context.Context, f tessera.IndexFuture) (rfc6962.CertificateTimestamp, error)
DedupFuture returns the SCT input matching a future.
It waits for the entry matching the future to be integrated, fetches it and extracts the SCT input fields from it.
TODO(phbnf): cache entries (or more) to avoid reparsing the entire leaf bundle
type CTStorageOptions ¶
type CreateStorage ¶
CreateStorage instantiates a Tessera storage implementation with a signer option.
type IssuerStorage ¶
IssuerStorage issuer certificates under their hex encoded sha256.
Click to show internal directories.
Click to hide internal directories.