Documentation ¶
Index ¶
- type Report
- func (r *Report) Complete()
- func (r *Report) FailedPoR(sg oid.ID)
- func (r *Report) PassedPoR(sg oid.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) CancelChannel() <-chan struct{}
- func (t *Task) ContainerID() cid.ID
- func (t *Task) ContainerNodes() [][]netmap.NodeInfo
- func (t *Task) ContainerStructure() container.Container
- func (t *Task) NetworkMap() *netmap.NetMap
- func (t *Task) Reporter() Reporter
- func (t *Task) StorageGroupList() []storagegroup.StorageGroup
- func (t *Task) WithCancelChannel(ch <-chan struct{}) *Task
- func (t *Task) WithContainerID(cnr cid.ID) *Task
- func (t *Task) WithContainerNodes(cnrNodes [][]netmap.NodeInfo) *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 []storagegroup.StorageGroup) *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) CancelChannel ¶
func (t *Task) CancelChannel() <-chan struct{}
func (*Task) ContainerID ¶
ContainerID returns identifier of the container under audit.
func (*Task) 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 ¶
func (t *Task) StorageGroupList() []storagegroup.StorageGroup
StorageGroupList returns list of storage groups from container under audit.
func (*Task) WithCancelChannel ¶
func (*Task) WithContainerID ¶
WithContainerID sets identifier of the container under audit.
func (*Task) WithContainerNodes ¶
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.
func (*Task) WithStorageGroupList ¶
func (t *Task) WithStorageGroupList(sgList []storagegroup.StorageGroup) *Task
WithStorageGroupList sets a list of storage groups from container under audit.