[#121] pool: Make PrmContainerEACL fields public
All checks were successful
DCO / DCO (pull_request) Successful in 52s
Tests and linters / Tests (1.19) (pull_request) Successful in 1m19s
Tests and linters / Lint (pull_request) Successful in 5m11s
Tests and linters / Tests (1.20) (pull_request) Successful in 7m27s

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2023-08-11 11:06:45 +03:00
parent 5636622f97
commit 00355300f7

View file

@ -523,8 +523,9 @@ func (c *clientWrapper) containerEACL(ctx context.Context, prm PrmContainerEACL)
return eacl.Table{}, err
}
var cliPrm sdkClient.PrmContainerEACL
cliPrm.SetContainer(prm.cnrID)
cliPrm := sdkClient.PrmContainerEACL{
ContainerID: &prm.ContainerID,
}
start := time.Now()
res, err := cl.ContainerEACL(ctx, cliPrm)
@ -1521,12 +1522,12 @@ func (x *PrmContainerDelete) SetWaitParams(waitParams WaitParams) {
// PrmContainerEACL groups parameters of GetEACL operation.
type PrmContainerEACL struct {
cnrID cid.ID
ContainerID cid.ID
}
// SetContainerID specifies identifier of the FrostFS container to read the eACL table.
func (x *PrmContainerEACL) SetContainerID(cnrID cid.ID) {
x.cnrID = cnrID
x.ContainerID = cnrID
}
// PrmContainerSetEACL groups parameters of SetEACL operation.
@ -2514,7 +2515,7 @@ func waitForContainerPresence(ctx context.Context, cli client, cnrID cid.ID, wai
func waitForEACLPresence(ctx context.Context, cli client, cnrID *cid.ID, table *eacl.Table, waitParams *WaitParams) error {
var prm PrmContainerEACL
if cnrID != nil {
prm.SetContainerID(*cnrID)
prm.ContainerID = *cnrID
}
return waitFor(ctx, waitParams, func(ctx context.Context) bool {