frostfs-api-go/pkg/acl/eacl
Leonard Lyubich 8c70b4714e [#288] pkg/eacl: Fix conversion of slices in Record.ToV2 method
Nil slices of targets and filters of the `Record` should be converted to nil
slices in corresponding fields of API v2 message structure.

Add nil-check in `Record.ToV2` implementation. The changes fix corresponding
unit test.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-28 09:37:21 +03:00
..
enums.go [#199] sdk/eacl: Correct linter's remarks 2020-11-16 18:51:14 +03:00
enums_test.go [#139] sdk/acl: Add test coverage for EACL structures 2020-09-18 10:45:11 +03:00
filter.go [#288] pkg/eacl: Document default values set in NewFilter 2021-05-28 09:37:21 +03:00
filter_test.go [#288] pkg/eacl: Document default values set in NewFilter 2021-05-28 09:37:21 +03:00
record.go [#288] pkg/eacl: Fix conversion of slices in Record.ToV2 method 2021-05-28 09:37:21 +03:00
record_test.go [#288] pkg/eacl: Document default values set in NewRecord 2021-05-28 09:37:21 +03:00
table.go [#283] pkg/container: Add session token and signature to Table 2021-05-26 12:24:58 +03:00
table_test.go [#283] pkg/container: Add session token and signature to Table 2021-05-26 12:24:58 +03:00
target.go [#288] pkg/eacl: Document default values set in NewTarget 2021-05-28 09:37:21 +03:00
target_test.go [#288] pkg/eacl: Document default values set in NewTarget 2021-05-28 09:37:21 +03:00