controller

package
v1.0.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL