forked from TrueCloudLab/frostfs-api-go
[#288] pkg/eacl: Document default values set in NewTable
Document field values of instance constructed via `NewTable`. Assert the values in corresponding unit test. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8abf78009a
commit
fc4f7429d5
2 changed files with 25 additions and 0 deletions
|
@ -100,6 +100,13 @@ func (t *Table) ToV2() *v2acl.Table {
|
|||
}
|
||||
|
||||
// NewTable creates, initializes and returns blank Table instance.
|
||||
//
|
||||
// Defaults:
|
||||
// - version: pkg.SDKVersion();
|
||||
// - container ID: nil;
|
||||
// - records: nil;
|
||||
// - session token: nil;
|
||||
// - signature: nil.
|
||||
func NewTable() *Table {
|
||||
t := new(Table)
|
||||
t.SetVersion(*pkg.SDKVersion())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue