Documentation
¶
Overview ¶
Package simorg simulates a small company across every source whodar reads, serving each tool's wire format from in-process HTTP servers. It exercises the full pipeline end to end, at the wire level, without any credentials.
Index ¶
- func Aliases() string
- func BuildGitRepo(dir string) error
- func BuildIndex(dir string) (*index.Index, error)
- func CodeOwners() string
- func ConfluenceServer() *httptest.Server
- func GitHubServer() *httptest.Server
- func JiraServer() *httptest.Server
- func OrgCSV() string
- func PagerDutyServer() *httptest.Server
- func SlackServer() *httptest.Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aliases ¶
func Aliases() string
Aliases returns the alias file joining Eve's email-less GitHub login.
func BuildGitRepo ¶
BuildGitRepo creates a repository under dir with the simulated history: Victor's heavy terraform work two years ago, Carol's recent terraform work, Heidi's recent search work, and a bot commit that must be skipped.
func BuildIndex ¶ added in v0.1.15
BuildIndex assembles the simulated company into a merged, canonicalized index under dir: it writes the org chart, CODEOWNERS, and alias fixtures, creates the git repository, serves each tool's wire format from in-process HTTP servers, and ingests all eight sources through the real connectors.
func CodeOwners ¶
func CodeOwners() string
CodeOwners returns a CODEOWNERS file owning terraform paths by email.
func ConfluenceServer ¶
ConfluenceServer serves page search in Confluence Cloud's wire format.
func GitHubServer ¶
GitHubServer serves two repositories in GitHub's wire format: Jane's billing service and Eve's web app. Jane's profile exposes her email; Eve's does not, so she stays a github: identity until an alias joins her.
func JiraServer ¶
JiraServer serves issue search in Jira Cloud's wire format.
func PagerDutyServer ¶
PagerDutyServer serves services and on-calls in PagerDuty's wire format.
func SlackServer ¶
SlackServer serves users, channels, and history in Slack's wire format. The first history call returns HTTP 429 so the client's retry path runs.
Types ¶
This section is empty.