user

package
v1.0.4-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreateAccessToken

func HandleCreateAccessToken(userCtrl *user.Controller) http.HandlerFunc

HandleCreateAccessToken returns an http.HandlerFunc that creates a new PAT and writes a json-encoded TokenResponse to the http.Response body.

func HandleCreatePublicKey

func HandleCreatePublicKey(userCtrl *user.Controller) http.HandlerFunc

func HandleDeletePublicKey

func HandleDeletePublicKey(userCtrl *user.Controller) http.HandlerFunc

func HandleDeleteToken

func HandleDeleteToken(userCtrl *user.Controller, tokenType enum.TokenType) http.HandlerFunc

HandleDeleteToken returns an http.HandlerFunc that deletes a token of a user.

func HandleFind

func HandleFind(userCtrl *user.Controller) http.HandlerFunc

HandleFind returns an http.HandlerFunc that writes json-encoded account information to the http response body.

func HandleListPublicKeys

func HandleListPublicKeys(userCtrl *user.Controller) http.HandlerFunc

func HandleListTokens

func HandleListTokens(userCtrl *user.Controller, tokenType enum.TokenType) http.HandlerFunc

HandleListTokens returns an http.HandlerFunc that writes a json-encoded list of Tokens to the http.Response body.

func HandleMembershipSpaces

func HandleMembershipSpaces(userCtrl *user.Controller) http.HandlerFunc

func HandleUpdate

func HandleUpdate(userCtrl *user.Controller) http.HandlerFunc

HandleUpdate returns an http.HandlerFunc that processes an http.Request to update the current user account.

func HandleUpdateAdmin

func HandleUpdateAdmin(userCtrl *user.Controller) http.HandlerFunc

HandleUpdateAdmin returns a http.HandlerFunc that processes an http.Request to update the current user admin status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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