steid

@jamesgill /

1//! The application layer: use cases and the ports they depend on.
2//!
3//! Every use case takes an actor or a credential plus the ports it needs, and enforces
4//! the rules before any side effect. Nothing here knows about HTTP or Topcoat.
5
6pub mod access;
7pub mod archive;
8pub mod backup;
9pub mod blame;
10pub mod browse;
11pub mod claim;
12pub mod commit;
13pub mod config;
14pub mod diff;
15pub mod error;
16pub mod feed;
17pub mod git;
18pub mod identity;
19pub mod import;
20pub mod instance;
21pub mod issue;
22pub mod label;
23pub mod login;
24pub mod org;
25pub mod paging;
26pub mod password_reset;
27pub mod port;
28pub mod profile;
29pub mod pull_request;
30pub mod push;
31pub mod reconcile;
32pub mod repo;
33pub mod search;
34pub mod session;
35pub mod summary;
36pub mod token;
37pub mod webhook;
38
39pub use access::{Stores, instance_owner};
40pub use archive::{ArchiveTarget, archive_repo, open_archive};
41pub use backup::{
42 BackupCounts, BackupManifest, BackupWritten, RestoreMode, Restored, archive_name, back_up,
43 back_up_for, restore,
44};
45pub use blame::{Blame, BlameCommit, BlameContent, BlameFile, BlameGroup, blame_file, parse_blame};
46pub use browse::{
47 Browsed, EntryDetail, FileView, LOG_LIMIT, MAX_BLOB_BYTES, MAX_RAW_BYTES, PathLog, RawFile,
48 RefList, RefPage, browse_repo, list_branches, list_refs, list_tags, parse_gitmodules,
49 read_raw_file, repo_log, repo_path_log, resolve_relative,
50};
51pub use claim::{
52 OrganisationSeed, OwnerSeed, OwnerSpec, claim_instance, is_claimed, seed_owner,
53 sole_owner_handle,
54};
55pub use commit::{
56 COMPARE_LOG_LIMIT, CommitPage, Compared, Comparison, compare_revisions, view_commit,
57};
58pub use config::{AppConfig, Secret};
59pub use diff::{Diff, DiffLine, FileChange, FileDiff, FileStat, LineKind, MAX_FILE_DIFF_LINES};
60pub use error::{Error, Result};
61pub use feed::{ActivityEntry, FEED_LIMIT, IssueEntry, activity_feed, commit_feed, issue_feed};
62pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git};
63pub use identity::{Identity, describe_identity};
64pub use import::{
65 INTERRUPTED, NewImport, import_failure_message, import_repo, retry_import, run_import,
66 sweep_interrupted_imports,
67};
68pub use instance::{InstanceReport, InstanceState, describe_instance, instance_state};
69pub use issue::{
70 CommentView, IssueDetail, IssueEdit, IssueList, IssueSummary, NewIssue, comment_on_issue,
71 create_issue, edit_issue, list_issues, set_issue_state, view_issue,
72};
73pub use label::{
74 LabelEdit, LabelPage, LabelRow, LabelView, NewLabel, create_label, delete_label, list_labels,
75 set_issue_labels, set_pull_labels, update_label,
76};
77pub use login::login;
78pub use org::{
79 NewOrganisation, create_organization, home_handle, home_is_set, is_personal_handle,
80 is_personal_org, set_home, set_home_by_handle,
81};
82pub use paging::Paged;
83pub use password_reset::{
84 FORGOT_ACKNOWLEDGEMENT, IssuedReset, change_password, find_live_reset, mint_reset_for_handle,
85 request_password_reset, reset_password,
86};
87pub use profile::{PublicProfile, update_profile, view_profile};
88pub use pull_request::{
89 MAX_SQUASHED_COMMITS, MergeAuthor, Mergeability, Merged, NewPull, Numbered, PULL_LIMIT,
90 PullDetail, PullEdit, PullList, PullSummary, comment_on_pull, create_pull, edit_pull,
91 list_pulls, merge_pull, numbered_thing, set_pull_state, suggested_title, view_pull,
92};
93pub use push::{RefChange, RefSnapshot, record_push, ref_changes, snapshot_refs};
94pub use reconcile::{orphan_dirs, quarantine_label, sweep_orphan_directories};
95pub use repo::{
96 ImportStatus, NewRepo, REPO_LIMIT, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo,
97 list_repos, update_repo, view_repo,
98};
99pub use search::{
100 MAX_QUERY_BYTES, SEARCH_LIMIT, SEARCH_MAX_MATCHES, SearchFile, SearchResults, Searched,
101 search_repo,
102};
103pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired};
104pub use summary::{Licence, RepoFacts, repo_summary};
105pub use token::{
106 IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token,
107};
108pub use webhook::{
109 CreatedWebhook, DELIVERY_LIMIT, DeliveryContext, RETRY_BACKOFF, WebhookDetail, WebhookSummary,
110 create_webhook, delete_webhook, deliver_push, list_webhooks, push_payload, redeliver,
111 set_webhook_active, view_webhook,
112};