mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Expose policy code, for api router usage
This commit is contained in:
@@ -152,6 +152,13 @@ func Loadusers() map[string]User {
|
||||
return c.Users
|
||||
}
|
||||
|
||||
func Loadkey(accessKeyId string) User {
|
||||
c := Config{}
|
||||
c.SetupConfig()
|
||||
c.ReadConfig()
|
||||
return c.GetKey(accessKeyId)
|
||||
}
|
||||
|
||||
func Loaduser(username string) User {
|
||||
c := Config{}
|
||||
c.SetupConfig()
|
||||
|
||||
Reference in New Issue
Block a user