forked from TrueCloudLab/frostfs-sdk-go
aa5ee1dcde
Also make well-known values constant not variables. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
20 lines
335 B
Go
20 lines
335 B
Go
package acl
|
|
|
|
func init() {
|
|
// left-to-right order of the object operations
|
|
orderedOps := [...]Op{
|
|
OpObjectGet,
|
|
OpObjectHead,
|
|
OpObjectPut,
|
|
OpObjectDelete,
|
|
OpObjectSearch,
|
|
OpObjectRange,
|
|
OpObjectHash,
|
|
}
|
|
|
|
mOrder = make(map[Op]uint8, len(orderedOps))
|
|
|
|
for i := range orderedOps {
|
|
mOrder[orderedOps[i]] = uint8(i)
|
|
}
|
|
}
|