forked from TrueCloudLab/frostfs-node
[#271] audit/report: Add PoR related setters
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
85773c419b
commit
5f65ec0265
1 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,7 @@ package audit
|
||||||
import (
|
import (
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/audit"
|
"github.com/nspcc-dev/neofs-api-go/pkg/audit"
|
||||||
"github.com/nspcc-dev/neofs-api-go/pkg/container"
|
"github.com/nspcc-dev/neofs-api-go/pkg/container"
|
||||||
|
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Report tracks the progress of auditing container data.
|
// Report tracks the progress of auditing container data.
|
||||||
|
@ -36,3 +37,13 @@ func (r *Report) Result() *audit.Result {
|
||||||
func (r *Report) Complete() {
|
func (r *Report) Complete() {
|
||||||
r.res.SetComplete(true)
|
r.res.SetComplete(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PassedPoR updates list of passed storage groups.
|
||||||
|
func (r *Report) PassedPoR(sg *object.ID) {
|
||||||
|
r.res.SetPassSG(append(r.res.PassSG(), sg))
|
||||||
|
}
|
||||||
|
|
||||||
|
// FailedPoR updates list of failed storage groups.
|
||||||
|
func (r *Report) FailedPoR(sg *object.ID) {
|
||||||
|
r.res.SetFailSG(append(r.res.FailSG(), sg))
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue