api_utils

package
v0.18.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiUtilsUsers

type ApiUtilsUsers struct {
}

func NewApiUtilsUsers

func NewApiUtilsUsers() *ApiUtilsUsers

func (*ApiUtilsUsers) DeleteUser

func (auu *ApiUtilsUsers) DeleteUser(toDelete *model.User) error

func (*ApiUtilsUsers) RemoveUsersSessions

func (auu *ApiUtilsUsers) RemoveUsersSessions(user *model.User)

Delete the sessions owned by a user

func (*ApiUtilsUsers) RemoveUsersTokens

func (auu *ApiUtilsUsers) RemoveUsersTokens(user *model.User)

Delete the tokens owned by a user

func (*ApiUtilsUsers) UpdateSpaceSSHKeys

func (auu *ApiUtilsUsers) UpdateSpaceSSHKeys(space *model.Space, user *model.User)

func (*ApiUtilsUsers) UpdateSpacesSSHKey

func (auu *ApiUtilsUsers) UpdateSpacesSSHKey(user *model.User)

func (*ApiUtilsUsers) UpdateUserSpaces

func (auu *ApiUtilsUsers) UpdateUserSpaces(user *model.User)

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

Jump to

Keyboard shortcuts

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