forked from TrueCloudLab/frostfs-node
[#69] object/acl: Add eACL components to service
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a7782cf1f9
commit
1d676fcfb2
5 changed files with 43 additions and 1 deletions
|
@ -3,6 +3,8 @@ package acl
|
|||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/container"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object/acl/eacl"
|
||||
)
|
||||
|
||||
// WithContainerSource returns option to set container source.
|
||||
|
@ -25,3 +27,17 @@ func WithNextService(v object.Service) Option {
|
|||
c.next = v
|
||||
}
|
||||
}
|
||||
|
||||
// WithEACLValidator returns options to set eACL validator options.
|
||||
func WithEACLValidatorOptions(v ...eacl.Option) Option {
|
||||
return func(c *cfg) {
|
||||
c.eACLOpts = v
|
||||
}
|
||||
}
|
||||
|
||||
// WithLocalStorage returns options to set local object storage.
|
||||
func WithLocalStorage(v *localstore.Storage) Option {
|
||||
return func(c *cfg) {
|
||||
c.localStorage = v
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue