frostfs-node/pkg/services/audit/auditor/exec.go
Leonard Lyubich 0f0be2377b [#255] services/audit: Implement audit executor without checks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-25 16:49:27 +03:00

41 lines
606 B
Go

package auditor
import (
"fmt"
)
// Execute audits container data.
func (c *Context) Execute() {
c.init()
for _, check := range []struct {
name string
exec func()
}{
{name: "PoR", exec: c.executePoR},
{name: "PoP", exec: c.executePoP},
{name: "PDP", exec: c.executePDP},
} {
c.log.Debug(fmt.Sprintf("executing %s check...", check.name))
if c.expired() {
break
}
check.exec()
}
c.writeReport()
}
func (c *Context) executePoR() {
// TODO: implement me
}
func (c *Context) executePoP() {
// TODO: implement me
}
func (c *Context) executePDP() {
// TODO: implement me
}