{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\n## Constants\n\n```go\nconst ByUserIndexName = \"ByUser\"\n```\n\n## Functions\n\n```go\nfunc ByUserIndexKeys(obj interface{}) ([]string, error)\n```\nByUserIndexKeys is cache.IndexFunc for Groups that will index groups by User, so that a direct cache lookup using a User.Name will return all Groups that User is a member of\n\n## Types\n\n```go\ntype GroupCache struct {\n\t// contains filtered or unexported fields\n}\n```\nGroupCache is a skin on an indexer to provide the reverse index from user to groups. Once we work out a cleaner way to extend a lister, this should live there.\n\n```go\nfunc NewGroupCache(groupInformer userinformer.GroupInformer) *GroupCache\n```\n\n```go\nfunc (c *GroupCache) GroupsFor(username string) ([]*userapi.Group, error)\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/user/cache","name":"cache","synopsis":"","isRedistributable":true}
