Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownDriver = fmt.Errorf("Unknown driver")
ErrUnknownDriver is the "Unknown driver" error.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface { AddProject(projectID int64, name string) error DeleteProject(projectID int64) error RenameProject(projectID int64, newName string) error StopStatusCheck() UserAccess(username string) (*UserAccess, error) UserIsAdmin(r *http.Request) bool UserHasPermission(r *http.Request, projectName string, permission string) bool }
type UserAccess ¶
UserAccess struct for permission checks.
Click to show internal directories.
Click to hide internal directories.