feat: port influx auth
command (#152)
This commit is contained in:
15
api/permission_string.go
Normal file
15
api/permission_string.go
Normal file
@ -0,0 +1,15 @@
|
||||
package api
|
||||
|
||||
func (o Permission) String() string {
|
||||
ret := o.GetAction() + ":"
|
||||
r := o.GetResource()
|
||||
|
||||
if r.GetOrgID() != "" {
|
||||
ret += "orgs/" + r.GetOrgID()
|
||||
}
|
||||
ret += "/" + r.GetType()
|
||||
if r.GetId() != "" {
|
||||
ret += "/" + r.GetId()
|
||||
}
|
||||
return ret
|
||||
}
|
Reference in New Issue
Block a user