api_utils

package
v0.21.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpaceDetails added in v0.19.0

func GetSpaceDetails(spaceId string, user *model.User) (*apiclient.SpaceDefinition, error)

GetSpaceDetails returns detailed space information with permission checks

func GetTemplateDetails added in v0.19.0

func GetTemplateDetails(templateId string, user *model.User) (*apiclient.TemplateDetails, error)

GetTemplateDetails returns detailed template information with permission checks

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