Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeConfig ¶
type ClaudeConfig struct {
BundlePath string `mapstructure:"bundle_path"` // Path to claude-bundle tarball or directory
}
ClaudeConfig holds Claude Code related settings.
type Config ¶
type Config struct {
DataDir string `mapstructure:"data_dir"`
ProjectsDir string `mapstructure:"projects_dir"`
JobsDir string `mapstructure:"jobs_dir"`
TicketsDir string `mapstructure:"tickets_dir"`
Credentials CredentialsConfig `mapstructure:"credentials"`
Claude ClaudeConfig `mapstructure:"claude"`
Server ServerConfig `mapstructure:"server"`
Logging LoggingConfig `mapstructure:"logging"`
}
Config holds all MANFRED configuration.
func (*Config) ClaudeCredentialsExist ¶
ClaudeCredentialsExist checks if Claude credentials file exists.
func (*Config) EnsureDirectories ¶
EnsureDirectories creates all required directories.
func (*Config) ProjectConfig ¶
func (c *Config) ProjectConfig(name string) (*ProjectConfig, error)
ProjectConfig loads the configuration for a specific project.
func (*Config) ProjectRepositoryPath ¶
ProjectRepositoryPath returns the path to the project's repository.
type CredentialsConfig ¶
type CredentialsConfig struct {
AnthropicAPIKey string `mapstructure:"anthropic_api_key"`
ClaudeCredentialsFile string `mapstructure:"claude_credentials_file"`
}
CredentialsConfig holds credential-related settings.
type DockerConfig ¶
type DockerConfig struct {
ComposeFile string `yaml:"compose_file"`
MainService string `yaml:"main_service"`
Workdir string `yaml:"workdir"`
}
DockerConfig holds Docker-related project settings.
type LoggingConfig ¶
type LoggingConfig struct {
Level string `mapstructure:"level"`
Format string `mapstructure:"format"`
}
LoggingConfig holds logging settings.
type ProjectConfig ¶
type ProjectConfig struct {
Name string `yaml:"name"`
Repo string `yaml:"repo"`
DefaultBranch string `yaml:"default_branch"`
Docker DockerConfig `yaml:"docker"`
}
ProjectConfig holds per-project configuration from project.yml.
type ServerConfig ¶
ServerConfig holds web server settings.
Click to show internal directories.
Click to hide internal directories.