Documentation
¶
Index ¶
- func AuthenticateGHCLI(githubHost, token string, env []string) error
- func AutoDiscoverInstallationID(appIDStr, pemPath, repoFullName string) (string, error)
- func GenerateGitHubAppToken(appIDStr, installationIDStr, pemPath string) (string, error)
- func GetGitHubToken(repoFullName string) (string, error)
- func InitGitHubRepo(repoFullName, cloneDir string, ignoreMissingConfig bool) error
- func SetupClaudeCode(homeDir string) error
- func SetupGitHubAuth(repoFullName string) error
- func SetupMCPServers(homeDir, configFlag string) error
- func Sync(opts SyncOptions) error
- type MCPServerConfig
- type SyncOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateGHCLI ¶ added in v1.57.0
AuthenticateGHCLI authenticates gh CLI for GitHub Enterprise Server
func AutoDiscoverInstallationID ¶ added in v1.57.0
AutoDiscoverInstallationID discovers the installation ID for a given repository using cache
func GenerateGitHubAppToken ¶ added in v1.57.0
GenerateGitHubAppToken generates a GitHub App installation token
func GetGitHubToken ¶ added in v1.57.0
GetGitHubToken retrieves the GitHub token for authentication
func InitGitHubRepo ¶
InitGitHubRepo initializes a GitHub repository with proper git clone functionality
func SetupClaudeCode ¶
SetupClaudeCode sets up Claude Code configuration
func SetupGitHubAuth ¶ added in v1.57.0
SetupGitHubAuth sets up GitHub authentication using gh CLI
func SetupMCPServers ¶
SetupMCPServers sets up MCP servers from configuration
func Sync ¶ added in v1.131.0
func Sync(opts SyncOptions) error
Sync synchronizes settings from Settings Secret to Claude configuration files
Types ¶
type MCPServerConfig ¶
type MCPServerConfig struct {
ID string `json:"id"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Enabled bool `json:"enabled"`
Transport string `json:"transport"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Env map[string]string `json:"env,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
MCPServerConfig represents MCP server configuration
type SyncOptions ¶ added in v1.131.0
type SyncOptions struct {
SettingsFile string // Path to the mounted settings.json from Settings Secret
OutputDir string // Home directory (generates ~/.claude.json and ~/.claude/)
CredentialsFile string // Path to the mounted credentials.json from Credentials Secret (optional)
ClaudeMDFile string // Path to CLAUDE.md file to copy (optional, default: /tmp/config/CLAUDE.md)
NotificationSubscriptions string // Path to notification subscriptions directory (optional)
NotificationsDir string // Path to notifications output directory (optional)
RegisterMarketplaces bool // Register cloned marketplaces using claude CLI
}
SyncOptions contains options for the sync command