forked from TrueCloudLab/frostfs-api-go
[#288] pkg/eacl: Document default values set in NewTarget
Document field values of instance constructed via `NewTarget`. Assert the values in corresponding unit test. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5844096017
commit
b81f39368e
2 changed files with 19 additions and 0 deletions
|
@ -124,6 +124,10 @@ func (t *Target) ToV2() *v2acl.Target {
|
|||
}
|
||||
|
||||
// NewTarget creates, initializes and returns blank Target instance.
|
||||
//
|
||||
// Defaults:
|
||||
// - role: RoleUnknown;
|
||||
// - keys: nil.
|
||||
func NewTarget() *Target {
|
||||
return NewTargetFromV2(new(v2acl.Target))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue