Expose policy code, for api router usage

This commit is contained in:
Harshavardhana
2015-02-17 19:06:01 -08:00
parent 5235badec9
commit cf6d03b907
3 changed files with 23 additions and 48 deletions

View File

@@ -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()