workspace

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: EUPL-1.2 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *core.Core) (any, error)

New creates a new Workspace service instance.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements the core.Workspace interface.

func (*Service) CreateWorkspace

func (s *Service) CreateWorkspace(identifier, password string) (string, error)

CreateWorkspace creates a new encrypted workspace. Identifier is hashed (SHA-256 as proxy for LTHN) to create the directory name. A PGP keypair is generated using the password.

func (*Service) HandleIPCEvents

func (s *Service) HandleIPCEvents(c *core.Core, msg core.Message) error

HandleIPCEvents handles workspace-related IPC messages.

func (*Service) SwitchWorkspace

func (s *Service) SwitchWorkspace(name string) error

SwitchWorkspace changes the active workspace.

func (*Service) WorkspaceFileGet

func (s *Service) WorkspaceFileGet(filename string) (string, error)

WorkspaceFileGet retrieves the content of a file from the active workspace. In a full implementation, this would involve decryption using the workspace key.

func (*Service) WorkspaceFileSet

func (s *Service) WorkspaceFileSet(filename, content string) error

WorkspaceFileSet saves content to a file in the active workspace. In a full implementation, this would involve encryption using the workspace key.

Jump to

Keyboard shortcuts

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