acl: rename UpdatePerms to Update
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
18
acl/perms.go
Normal file
18
acl/perms.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package acl
|
||||
|
||||
type Perms []Perm
|
||||
|
||||
func (ps Perms) String() string {
|
||||
var s = []byte("---")
|
||||
for _, p := range ps {
|
||||
switch p {
|
||||
case Read:
|
||||
s[0] = 'r'
|
||||
case Write:
|
||||
s[1] = 'w'
|
||||
case Execute:
|
||||
s[2] = 'x'
|
||||
}
|
||||
}
|
||||
return string(s)
|
||||
}
|
||||
Reference in New Issue
Block a user