userdir

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupUserHome

func SetupUserHome(userID string) (map[string]string, error)

SetupUserHome creates user-specific home directory and returns environment variables

Types

type Manager

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

Manager handles user-specific directory operations

func NewManager

func NewManager(baseDir string, enabled bool) *Manager

NewManager creates a new user directory manager

func (*Manager) EnsureUserClaudeDir

func (m *Manager) EnsureUserClaudeDir(userID string) (string, error)

EnsureUserClaudeDir creates the user Claude directory if it doesn't exist

func (*Manager) EnsureUserHomeDir

func (m *Manager) EnsureUserHomeDir(userID string) (string, error)

EnsureUserHomeDir creates the user home directory if it doesn't exist

func (*Manager) GetUserClaudeDir

func (m *Manager) GetUserClaudeDir(userID string) (string, error)

GetUserClaudeDir returns the Claude directory for a specific user

func (*Manager) GetUserHomeDir

func (m *Manager) GetUserHomeDir(userID string) (string, error)

GetUserHomeDir returns the home directory for a specific user

func (*Manager) IsEnabled

func (m *Manager) IsEnabled() bool

IsEnabled returns whether multiple users mode is enabled

Jump to

Keyboard shortcuts

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