Documentation ¶
Index ¶
- type Report
- func (r *Report) Complete()
- func (r *Report) FailedPoR(sg *object.ID)
- func (r *Report) PassedPoR(sg *object.ID)
- func (r *Report) Result() *audit.Result
- func (r *Report) SetPDPResults(passed, failed [][]byte)
- func (r *Report) SetPlacementCounters(hit, miss, fail uint32)
- func (r *Report) SetPoRCounters(requests, retries uint32)
- type Reporter
- type Task
- func (t *Task) AuditContext() context.Context
- func (t *Task) ContainerID() *cid.ID
- func (t *Task) ContainerNodes() netmap.ContainerNodes
- func (t *Task) ContainerStructure() *container.Container
- func (t *Task) NetworkMap() *netmap.Netmap
- func (t *Task) Reporter() Reporter
- func (t *Task) StorageGroupList() []*object.ID
- func (t *Task) WithAuditContext(ctx context.Context) *Task
- func (t *Task) WithContainerID(cid *cid.ID) *Task
- func (t *Task) WithContainerNodes(cnrNodes netmap.ContainerNodes) *Task
- func (t *Task) WithContainerStructure(cnr *container.Container) *Task
- func (t *Task) WithNetworkMap(nm *netmap.Netmap) *Task
- func (t *Task) WithReporter(r Reporter) *Task
- func (t *Task) WithStorageGroupList(sgList []*object.ID) *Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report tracks the progress of auditing container data.
func (*Report) SetPDPResults ¶
SetPDPResults sets lists of nodes according to their PDP results.
func (*Report) SetPlacementCounters ¶
SetPlacementCounters sets counters of compliance with placement.
func (*Report) SetPoRCounters ¶
SetPoRCounters sets amounts of head requests and retries at PoR audit stage.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task groups groups the container audit parameters.
func (*Task) AuditContext ¶
AuditContext returns context of the audit of the current epoch.
func (*Task) ContainerID ¶
ContainerID returns identifier of the container under audit.
func (*Task) ContainerNodes ¶
func (t *Task) ContainerNodes() netmap.ContainerNodes
ContainerNodes returns nodes in the container under audit.
func (*Task) ContainerStructure ¶
ContainerStructure returns structure of the container under audit.
func (*Task) NetworkMap ¶
NetworkMap returns network map of audit epoch.
func (*Task) StorageGroupList ¶
StorageGroupList returns list of storage groups from container under audit.
func (*Task) WithAuditContext ¶
WithAuditContext sets context of the audit of the current epoch.
func (*Task) WithContainerID ¶
WithContainerID sets identifier of the container under audit.
func (*Task) WithContainerNodes ¶
func (t *Task) WithContainerNodes(cnrNodes netmap.ContainerNodes) *Task
WithContainerNodes sets nodes in the container under audit.
func (*Task) WithContainerStructure ¶
WithContainerStructure sets structure of the container under audit.
func (*Task) WithNetworkMap ¶
WithNetworkMap sets network map of audit epoch.
func (*Task) WithReporter ¶
WithReporter sets audit report writer.