simorg

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

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

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

func BuildGitRepo(dir string) error

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

func BuildIndex(dir string) (*index.Index, error)

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

func ConfluenceServer() *httptest.Server

ConfluenceServer serves page search in Confluence Cloud's wire format.

func GitHubServer

func GitHubServer() *httptest.Server

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

func JiraServer() *httptest.Server

JiraServer serves issue search in Jira Cloud's wire format.

func OrgCSV

func OrgCSV() string

OrgCSV returns the org chart in the org-csv source format.

func PagerDutyServer

func PagerDutyServer() *httptest.Server

PagerDutyServer serves services and on-calls in PagerDuty's wire format.

func SlackServer

func SlackServer() *httptest.Server

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.

Jump to

Keyboard shortcuts

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