forked from TrueCloudLab/frostfs-node
[#255] services/audit: Define interface of container communicator
Define interface of the container communicator which methods are going to be used in audit checks. Make innerring Server to implement this interface. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ecb5227c27
commit
03e3afb0e8
4 changed files with 59 additions and 1 deletions
|
@ -71,3 +71,11 @@ func WithQueueCapacity(cap uint32) Option {
|
|||
c.queueCap = cap
|
||||
}
|
||||
}
|
||||
|
||||
// WithContainerCommunicator returns option to set component of communication
|
||||
// with container nodes.
|
||||
func WithContainerCommunicator(cnrCom auditor.ContainerCommunicator) Option {
|
||||
return func(c *cfg) {
|
||||
c.ctxPrm.SetContainerCommunicator(cnrCom)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue