aboutsummaryrefslogtreecommitdiff
path: root/instance.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-23 18:37:37 +0200
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-23 18:37:37 +0200
commit134f7e1cb59b7c1bd4f2eadfebe7f65da1264988 (patch)
tree0d216c95de64c3f46412a9f87e5dcfe8ad067ea3 /instance.go
parent9b38f5a034486c27eaf81062ecdd86a72667e2b0 (diff)
added start on get-anchors code path
Diffstat (limited to 'instance.go')
-rw-r--r--instance.go28
1 files changed, 15 insertions, 13 deletions
diff --git a/instance.go b/instance.go
index 3f53e5f..c8aaca3 100644
--- a/instance.go
+++ b/instance.go
@@ -14,23 +14,25 @@ import (
// instance groups information about a specific STFE instance.
type instance struct {
- prefix string
- logID int64
- client trillian.TrillianLogClient
- deadline time.Duration
- anchors ctfe.CertValidationOpts
- timesource ctutil.TimeSource
+ prefix string
+ logID int64
+ client trillian.TrillianLogClient
+ deadline time.Duration
+ anchors ctfe.CertValidationOpts
+ anchorsPool ctfe.PEMCertPool // TODO: merge anchors and anchorsPool
+ timesource ctutil.TimeSource
}
// NewInstance returns a new STFE instance
-func NewInstance(prefix string, id int64, client trillian.TrillianLogClient, deadline time.Duration, timesource ctutil.TimeSource, anchors ctfe.CertValidationOpts) *instance {
+func NewInstance(prefix string, id int64, client trillian.TrillianLogClient, deadline time.Duration, timesource ctutil.TimeSource, anchors ctfe.CertValidationOpts, anchorsPool ctfe.PEMCertPool) *instance {
return &instance{
- prefix: prefix,
- logID: id,
- client: client,
- deadline: deadline,
- timesource: timesource,
- anchors: anchors,
+ prefix: prefix,
+ logID: id,
+ client: client,
+ deadline: deadline,
+ timesource: timesource,
+ anchors: anchors,
+ anchorsPool: anchorsPool,
}
}