Documentation ¶
Index ¶
- func CacheExtraPermissions()
- func CacheFirecloudAccounts(ctx context.Context) error
- func ExtractUserFromContext(ctx *gin.Context) (*auth_models.User, error)
- func FakeUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc
- func GenerateUser(t *testing.T, suitable bool) *auth_models.User
- func IapUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc
- func KeepCacheUpdated(ctx context.Context, interval time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExtraPermissions ¶
func CacheExtraPermissions()
func CacheFirecloudAccounts ¶
func ExtractUserFromContext ¶
func ExtractUserFromContext(ctx *gin.Context) (*auth_models.User, error)
ExtractUserFromContext is the counterpart to the middlewares provided by this package: handlers can call it to extract a User from the context.
func FakeUserMiddleware ¶
func FakeUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc
func GenerateUser ¶
func GenerateUser(t *testing.T, suitable bool) *auth_models.User
func IapUserMiddleware ¶
func IapUserMiddleware(userStore *v2models.UserMiddlewareStore) gin.HandlerFunc
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.