Documentation
¶
Overview ¶
Package git is the typed client for the "git" app's internal ops.
Every call here is a ZAP call BY NAME over the peer's unix socket — no URL, no env var, no HTTP round trip, and no way to reach the public edge by accident. That last one is not a style preference: git's own callers used to reach it through CLOUD_COMMERCE_HTTP_URL, which defaulted to the api.hanzo.ai edge — the SAME binary — so the forwarder re-entered itself and the billing gate died of it. A call by name cannot express that mistake.
It depends on the CONTRACT (package plane) and never on git's implementation, so importing it costs a caller nothing but the types it is already sending.
Index ¶
- Constants
- Variables
- func GitFiles(ctx context.Context, in *plane.FilesIn) (*plane.Files, error)
- func GitImport(ctx context.Context, in *plane.ImportIn) (*plane.Imported, error)
- func GitInbound(ctx context.Context, in *plane.InboundIn) (*plane.Synced, error)
- func GitMirror(ctx context.Context, in *plane.MirrorIn) (*plane.Mirrored, error)
- func GitPublish(ctx context.Context, in *plane.Visibility) (*struct{}, error)
- func GitRev(ctx context.Context, in *plane.RevIn) (*plane.Rev, error)
- func GitStatus(ctx context.Context, in *plane.StatusIn) (*plane.Statuses, error)
Constants ¶
const App = "git"
App is the peer's name, which is also the socket it answers on. It is the ONE place this package spells it.
Variables ¶
var Ops = []string{ plane.GitFiles, plane.GitImport, plane.GitInbound, plane.GitMirror, plane.GitPublish, plane.GitRev, plane.GitStatus, }
Ops is every op this peer answers, in the spelling the wire uses.
It exists so a test can hold this generated surface against the LIVE plane registry and fail when they disagree — which is what lets this be generated from source without the document drifting away from the program. See plane_registry_test.go.
Functions ¶
func GitFiles ¶
GitFiles a repo's files at one revision.
Calls plane.GitFiles on git over the peer plane.
func GitImport ¶
GitImport create a repo and mirror an upstream into it.
Calls plane.GitImport on git over the peer plane.
func GitInbound ¶
GitInbound advance one branch from an upstream push.
Calls plane.GitInbound on git over the peer plane.
func GitMirror ¶ added in v1.801.490
GitMirror declare or remove a repo's outbound mirror target.
Calls plane.GitMirror on git over the peer plane.
func GitPublish ¶
func GitPublish(ctx context.Context, in *plane.Visibility) (*struct{}, error)
GitPublish reconcile a project's repo visibility.
Calls plane.GitPublish on git over the peer plane.
Types ¶
This section is empty.