forked from TrueCloudLab/frostfs-node
[#106] Check bearer token lifetime
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
bb455af05f
commit
23ec33e821
3 changed files with 27 additions and 3 deletions
|
@ -3,6 +3,7 @@ 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/core/netmap"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object/acl/eacl"
|
||||
)
|
||||
|
@ -41,3 +42,10 @@ func WithLocalStorage(v *localstore.Storage) Option {
|
|||
c.localStorage = v
|
||||
}
|
||||
}
|
||||
|
||||
// WithNetmapState returns options to set global netmap state.
|
||||
func WithNetmapState(v netmap.State) Option {
|
||||
return func(c *cfg) {
|
||||
c.state = v
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue