Documentation
¶
Overview ¶
Package controller serves the user, group and group membership routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupController ¶
type GroupController struct {
// contains filtered or unexported fields
}
GroupController serves /api/v1/groups.
func NewGroupController ¶
func NewGroupController(svc *service.GroupService) *GroupController
NewGroupController returns a handler delegating to svc.
func (*GroupController) Register ¶
func (h *GroupController) Register(mux *http.ServeMux)
Register mounts the group routes.
/groups/me is registered alongside /groups/{groupId}; the literal segment wins for that exact path, the same way /slurm-cluster-configs/me does.
type GroupMemberController ¶
type GroupMemberController struct {
// contains filtered or unexported fields
}
GroupMemberController serves /api/v1/groups/{groupId}/members.
func NewGroupMemberController ¶
func NewGroupMemberController(svc *service.GroupMemberService) *GroupMemberController
NewGroupMemberController returns a handler delegating to svc.
func (*GroupMemberController) Register ¶
func (h *GroupMemberController) Register(mux *http.ServeMux)
Register mounts the membership routes.
type PermissionController ¶
type PermissionController struct {
// contains filtered or unexported fields
}
PermissionController serves /api/v1/permissions.
func NewPermissionController ¶
func NewPermissionController(svc *service.PermissionService) *PermissionController
NewPermissionController returns a handler delegating to svc.
func (*PermissionController) Register ¶
func (h *PermissionController) Register(mux *http.ServeMux)
Register mounts the permission routes.
type ServiceAccountController ¶
type ServiceAccountController struct {
// contains filtered or unexported fields
}
ServiceAccountController serves /api/v1/service-accounts.
func NewServiceAccountController ¶
func NewServiceAccountController(svc *service.ServiceAccountService) *ServiceAccountController
NewServiceAccountController returns a handler delegating to svc.
func (*ServiceAccountController) Register ¶
func (h *ServiceAccountController) Register(mux *http.ServeMux)
Register mounts the service account routes.
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
UserController serves /api/v1/users.
func NewUserController ¶
func NewUserController(svc *service.UserService) *UserController
NewUserController returns a handler delegating to svc.
func (*UserController) Register ¶
func (h *UserController) Register(mux *http.ServeMux)
Register mounts the user routes.
Update is POST /{userId}, not PUT. That is what the Java controller declared, and changing it would break existing clients even though it reads oddly.