Documentation
¶
Index ¶
- func Get(c context.Context, key string) (interface{}, error)
- func GetPerms(c context.Context, user *model.User, owner, name string) (*model.Perm, error)
- func GetRepos(c context.Context, user *model.User) ([]*model.RepoLite, 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 GetPerms ¶
GetPerm returns the user permissions repositories from the cache associated with the current repository.
Types ¶
Click to show internal directories.
Click to hide internal directories.