Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("audit error")
Error is the default audit errs class
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MaxRetriesStatDB int `help:"max number of times to attempt updating a statdb batch" default:"3"` Interval time.Duration `help:"how frequently segments are audited" default:"30s"` MinBytesPerSecond memory.Size `help:"the minimum acceptable bytes that storage nodes can transfer per second to the satellite" default:"128B"` }
Config contains configurable values for audit service
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
Cursor keeps track of audit location in pointer db
type RecordAuditsInfo ¶
type RecordAuditsInfo struct { SuccessNodeIDs storj.NodeIDList FailNodeIDs storj.NodeIDList OfflineNodeIDs storj.NodeIDList }
RecordAuditsInfo is a struct containing arguments/return values for RecordAudits()
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter records audit reports in overlay and implements the reporter interface
func NewReporter ¶
NewReporter instantiates a reporter
func (*Reporter) RecordAudits ¶
func (reporter *Reporter) RecordAudits(ctx context.Context, req *RecordAuditsInfo) (failed *RecordAuditsInfo, err error)
RecordAudits saves failed audit details to overlay
type Service ¶
type Service struct { Cursor *Cursor Verifier *Verifier Reporter reporter Loop sync2.Cycle // contains filtered or unexported fields }
Service helps coordinate Cursor and Verifier to run the audit process continuously
func NewService ¶
func NewService(log *zap.Logger, config Config, pointerdb *pointerdb.Service, orders *orders.Service, transport transport.Client, overlay *overlay.Cache, identity *identity.FullIdentity) (service *Service, err error)
NewService instantiates a Service with access to a Cursor and Verifier
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier helps verify the correctness of a given stripe
Click to show internal directories.
Click to hide internal directories.