Documentation
¶
Index ¶
- func Get(c context.Context, key string) (interface{}, error)
- func GetMembers(c context.Context, user *model.User, team string) ([]*model.Member, error)
- func GetPerm(c context.Context, user *model.User, owner, name string) (*model.Perm, error)
- func GetRepos(c context.Context, user *model.User) ([]*model.Repo, error)
- func GetTeams(c context.Context, user *model.User) ([]*model.Team, error)
- func Set(c context.Context, key string, value interface{}) error
- func ToContext(c Setter, cache Cache)
- type Cache
- type Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMembers ¶
GetMembers returns the team members from the cache.
func GetPerm ¶
GetPerm returns the user permissions repositories from the cache associated with the current repository.
func GetRepos ¶
GetRepos returns the list of user repositories from the cache associated with the current context.
func GetTeams ¶
GetTeams returns the list of user teams from the cache associated with the current context.
Types ¶
Click to show internal directories.
Click to hide internal directories.