user

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package user provides the user handlers for the Vela API.

Usage:

import "github.com/go-vela/server/api/user"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(c *gin.Context)

CreateToken represents the API handler to create a user token in the configured backend.

func CreateUser

func CreateUser(c *gin.Context)

CreateUser represents the API handler to create a user in the configured backend.

func DeleteToken

func DeleteToken(c *gin.Context)

DeleteToken represents the API handler to revoke and recreate a user token in the configured backend.

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser represents the API handler to remove a user from the configured backend.

func GetCurrentUser

func GetCurrentUser(c *gin.Context)

GetCurrentUser represents the API handler to capture the currently authenticated user from the configured backend.

func GetSourceRepos

func GetSourceRepos(c *gin.Context)

GetSourceRepos represents the API handler to capture the list of repos for a user from the configured backend.

func GetUser

func GetUser(c *gin.Context)

GetUser represents the API handler to capture a user from the configured backend.

func ListUsers

func ListUsers(c *gin.Context)

ListUsers represents the API handler to capture a list of users from the configured backend.

func UpdateCurrentUser

func UpdateCurrentUser(c *gin.Context)

UpdateCurrentUser represents the API handler to capture and update the currently authenticated user from the configured backend.

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser represents the API handler to update a user in the configured backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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