forked from TrueCloudLab/frostfs-api-go
[#288] pkg/eacl: Document default values set in NewRecord
Document field values of instance constructed via `NewRecord`. Assert the values in corresponding unit test. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
18a3c4d54f
commit
374c37983d
2 changed files with 24 additions and 0 deletions
|
@ -156,6 +156,12 @@ func (r *Record) ToV2() *v2acl.Record {
|
|||
}
|
||||
|
||||
// NewRecord creates and returns blank Record instance.
|
||||
//
|
||||
// Defaults:
|
||||
// - action: ActionUnknown;
|
||||
// - operation: OperationUnknown;
|
||||
// - targets: nil,
|
||||
// - filters: nil.
|
||||
func NewRecord() *Record {
|
||||
return new(Record)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue