api_utils

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTemplateHash

func DeleteTemplateHash(templateId string)

func DeleteUser

func DeleteUser(db database.IDbDriver, toDelete *model.User) error

func GetTemplateHash

func GetTemplateHash(templateId string) string

func GetTemplateHashes

func GetTemplateHashes() map[string]string

func LoadTemplateHashes

func LoadTemplateHashes()

func RemoveUsersSessions

func RemoveUsersSessions(user *model.User)

Delete the sessions owned by a user

func RemoveUsersTokens

func RemoveUsersTokens(user *model.User)

Delete the tokens owned by a user

func UpdateTemplateHash

func UpdateTemplateHash(templateId, hash string)

func UpdateUserSpaces

func UpdateUserSpaces(user *model.User)

For disabled users ensure all spaces are stopped, for enabled users update the SSH key on the agents

Types

This section is empty.

Jump to

Keyboard shortcuts

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