forked from TrueCloudLab/frostfs-sdk-go
[nspcc-dev/neofs-node#116] policy: Add comments
Added comments to exported variables and functions, fix typos in comments and extra newlines in code Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
3ef4b2c4cf
commit
0caf8cfd95
4 changed files with 11 additions and 7 deletions
|
@ -9,10 +9,15 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
ErrInvalidNumber = errors.New("policy: expected positive integer")
|
||||
ErrUnknownClause = errors.New("policy: unknown clause")
|
||||
ErrUnknownOp = errors.New("policy: unknown operation")
|
||||
ErrUnknownFilter = errors.New("policy: filter not found")
|
||||
// ErrInvalidNumber is returned when a value of SELECT is 0.
|
||||
ErrInvalidNumber = errors.New("policy: expected positive integer")
|
||||
// ErrUnknownClause is returned when a statement(clause) in a query is unknown.
|
||||
ErrUnknownClause = errors.New("policy: unknown clause")
|
||||
// ErrUnknownOp is returned when an operation in a query is unknown.
|
||||
ErrUnknownOp = errors.New("policy: unknown operation")
|
||||
// ErrUnknownFilter is returned when a value of FROM in a query is unknown.
|
||||
ErrUnknownFilter = errors.New("policy: filter not found")
|
||||
// ErrUnknownSelector is returned when a value of IN is unknown.
|
||||
ErrUnknownSelector = errors.New("policy: selector not found")
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue