space

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 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 SpaceApp

type SpaceApp struct {
	Config         config.Config
	Logger         zerolog.Logger
	SpacePres      domain.SpacePers
	DocumentPers   domain.DocumentPers
	PermissionPers domain.PermissionPers
}

func NewSpaceApp

func NewSpaceApp(config config.Config, logger zerolog.Logger, spacePers domain.SpacePers, documentPers domain.DocumentPers, permissionPers domain.PermissionPers) *SpaceApp

func (*SpaceApp) AdminAddSpaceGroupPermission

func (c *SpaceApp) AdminAddSpaceGroupPermission(spaceId, groupId string, role domain.PermissionRole) error

AdminAddSpaceGroupPermission adds a group permission to a space (admin only)

func (*SpaceApp) AdminAddSpaceUserPermission

func (c *SpaceApp) AdminAddSpaceUserPermission(spaceId, userId string, role domain.PermissionRole) error

AdminAddSpaceUserPermission adds a user permission to a space (admin only)

func (*SpaceApp) AdminCreateSpace

func (c *SpaceApp) AdminCreateSpace(name, icon, iconColor string, spaceType domain.SpaceType, ownerId *string) (*domain.Space, error)

AdminCreateSpace creates a space without requiring an owner (admin only)

func (*SpaceApp) AdminDeleteSpace

func (c *SpaceApp) AdminDeleteSpace(spaceId string) error

AdminDeleteSpace deletes a space (admin only)

func (*SpaceApp) AdminListSpacePermissions

func (c *SpaceApp) AdminListSpacePermissions(spaceId string) ([]domain.Permission, error)

AdminListSpacePermissions lists all permissions for a space with user/group details (admin only)

func (*SpaceApp) AdminRemoveSpaceGroupPermission

func (c *SpaceApp) AdminRemoveSpaceGroupPermission(spaceId, groupId string) error

AdminRemoveSpaceGroupPermission removes a group permission from a space (admin only)

func (*SpaceApp) AdminRemoveSpaceUserPermission

func (c *SpaceApp) AdminRemoveSpaceUserPermission(spaceId, userId string) error

AdminRemoveSpaceUserPermission removes a user permission from a space (admin only)

func (*SpaceApp) AdminUpdateSpace

func (c *SpaceApp) AdminUpdateSpace(spaceId, name, icon, iconColor string, spaceType domain.SpaceType, ownerId *string) error

AdminUpdateSpace updates a space (admin only)

func (*SpaceApp) CreatePrivateSpaceForUser

func (c *SpaceApp) CreatePrivateSpaceForUser(input dto.CreatePrivateSpaceForUserInput) (*dto.CreatePrivateSpaceForUserOutput, error)

func (*SpaceApp) CreateSpace

func (c *SpaceApp) CreateSpace(input dto.CreateSpaceInput) (*dto.CreateSpaceOutput, error)

func (*SpaceApp) DeleteSpace

func (c *SpaceApp) DeleteSpace(input dto.DeleteSpaceInput) error

func (*SpaceApp) DeleteSpaceUserPermission

func (c *SpaceApp) DeleteSpaceUserPermission(input dto.DeleteSpaceUserPermissionInput) error

func (*SpaceApp) GetAllSpaces

func (c *SpaceApp) GetAllSpaces(limit, offset int) ([]domain.Space, int64, error)

GetAllSpaces returns all spaces with pagination (admin only)

func (*SpaceApp) GetSpacesForUser

func (c *SpaceApp) GetSpacesForUser(input dto.GetSpacesForUserInput) (*dto.GetSpacesForUserOutput, error)

func (*SpaceApp) ListSpacePermissions

func (c *SpaceApp) ListSpacePermissions(input dto.ListSpacePermissionsInput) (*dto.ListSpacePermissionsOutput, error)

Permissions (MVP: user-level only)

func (*SpaceApp) UpdateSpace

func (c *SpaceApp) UpdateSpace(input dto.UpdateSpaceInput) (*dto.UpdateSpaceOutput, error)

func (*SpaceApp) UpsertSpaceUserPermission

func (c *SpaceApp) UpsertSpaceUserPermission(input dto.UpsertSpaceUserPermissionInput) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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