forked from TrueCloudLab/frostfs-node
[#1157] tree: Make tree service use Bearer token's APE overrides
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
04a3f891fd
commit
239323eeef
4 changed files with 118 additions and 13 deletions
|
@ -29,6 +29,7 @@ type cfg struct {
|
|||
log *logger.Logger
|
||||
key *ecdsa.PrivateKey
|
||||
rawPub []byte
|
||||
state netmap.State
|
||||
nmSource netmap.Source
|
||||
cnrSource ContainerSource
|
||||
frostfsidSubjectProvider frostfsidcore.SubjectProvider
|
||||
|
@ -156,3 +157,9 @@ func WithAPERouter(router policyengine.ChainRouter) Option {
|
|||
c.router = router
|
||||
}
|
||||
}
|
||||
|
||||
func WithNetmapState(state netmap.State) Option {
|
||||
return func(c *cfg) {
|
||||
c.state = state
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue