Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("invalid configuration")
Functions ¶
This section is empty.
Types ¶
type ArchiveLimits ¶
type Config ¶
type Config struct {
ListenAddress, ZoektURL, RepositoriesFile, SearchBackend string
UserToken, AdminToken string
UserRepositories, AdminRepositories []string
DatabaseURL string
GitHub GitHub
Graph Graph
Indexer Indexer
UserInstallationID, AdminInstallationID int64
UserRepositoryIDs, AdminRepositoryIDs []int64
Limits Limits
SSO SSO
SCIM SCIM
SupplyChain SupplyChain
}
type GitHubOAuth ¶
type GitHubOAuth struct {
Enabled bool
ClientID string
ClientSecretFile string
// AccessSync provisions users on first sign-in and mirrors the repositories
// they can reach through the configured GitHub App. It requires the OAuth
// client to be that GitHub App's own OAuth credential.
AccessSync bool
}
type Graph ¶
type Graph struct {
DefaultImpactDepth, MaxImpactDepth, DefaultTraceDepth int
MaxTraceDepth, MaxRows, MaxNodes, MaxEdges int
MaxRequestBytes, MaxResponseBytes int64
QueryLimits GraphQueryLimits
}
type GraphQueryLimits ¶
type GraphScanLimits ¶
type Indexer ¶
type Indexer struct {
DatabaseURL, ZoektURL, MetricsListenAddress string
GitHub GitHub
DataDir, IndexDir, GitPath, ZoektIndex, ZoektGitIndex, WorkerID string
ZoektGitIndexDeprecated bool
MinFreeBytes, MaxRepositoryBytes int64
SourceProvider string
ArchiveLimits ArchiveLimits
}
func LoadIndexer ¶
type MCPOAuth ¶
MCPOAuth turns GraphNest into an OAuth 2.1 authorization server for MCP clients: they sign in through the browser provider and receive short-lived access tokens for /mcp. KeyFile holds the 32-byte key that seals the GitHub token kept for refresh-time access sync; it is required only when GitHub access sync is enabled.
type OAuth ¶
type OAuth struct{ GitHub GitHubOAuth }
type Scanner ¶
type Scanner struct {
DatabaseURL, DataDir, GitPath, WorkerID, MetricsListenAddress string
GitHub GitHub
Limits GraphScanLimits
MinFreeBytes, MaxRepositoryBytes int64
ScanTimeout time.Duration
}
func LoadScanner ¶
type SupplyChain ¶ added in v0.6.0
type SupplyChain struct {
Enabled bool
Interval time.Duration
Workers int
MaxDocumentBytes int64
MaxComponents int
// RetainSnapshots is how many snapshots per repository stream are kept
// beyond those referenced by reviews; 0 disables pruning.
RetainSnapshots int
}
SupplyChain configures the Dependencies & Licenses module (ADR-0017). It is disabled by default and requires durable mode: collection needs the GitHub App and the PostgreSQL queue.