forked from TrueCloudLab/frostfs-node
ed808c3f1b
Replace `eacl.Storage` interface implementation from eACL lib to neofs-node app package. Remove `eacl.WithMorphClient` option in order to abstract eACL validator from eACL storage implementation. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
17 lines
249 B
Go
17 lines
249 B
Go
package eacl
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
|
)
|
|
|
|
func WithLogger(v *logger.Logger) Option {
|
|
return func(c *cfg) {
|
|
c.logger = v
|
|
}
|
|
}
|
|
|
|
func WithEACLStorage(v Storage) Option {
|
|
return func(c *cfg) {
|
|
c.storage = v
|
|
}
|
|
}
|