Documentation
¶
Index ¶
- func New(c *core.Core) (any, error)
- type Service
- func (s *Service) CreateWorkspace(identifier, password string) (string, error)
- func (s *Service) HandleIPCEvents(c *core.Core, msg core.Message) error
- func (s *Service) SwitchWorkspace(name string) error
- func (s *Service) WorkspaceFileGet(filename string) (string, error)
- func (s *Service) WorkspaceFileSet(filename, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the core.Workspace interface.
func (*Service) CreateWorkspace ¶
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 ¶
HandleIPCEvents handles workspace-related IPC messages.
func (*Service) SwitchWorkspace ¶
SwitchWorkspace changes the active workspace.
func (*Service) WorkspaceFileGet ¶
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 ¶
WorkspaceFileSet saves content to a file in the active workspace. In a full implementation, this would involve encryption using the workspace key.
Click to show internal directories.
Click to hide internal directories.