···10101111const ()
12121313-// GitTempDefs_Blob is a "blob" in the sh.tangled.git.temp.defs schema.
1414-//
1515-// blob metadata. This object doesn't include the blob content
1616-type GitTempDefs_Blob struct {
1717- LastCommit *GitTempDefs_Commit `json:"lastCommit" cborgen:"lastCommit"`
1818- Mode string `json:"mode" cborgen:"mode"`
1919- // name: The file name
2020- Name string `json:"name" cborgen:"name"`
2121- // size: File size in bytes
2222- Size int64 `json:"size" cborgen:"size"`
2323- // submodule: Submodule information if path is a submodule
2424- Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"`
2525-}
2626-2713// GitTempDefs_Branch is a "branch" in the sh.tangled.git.temp.defs schema.
2814type GitTempDefs_Branch struct {
2915 // commit: hydrated commit object
-36
api/tangled/tempgetEntity.go
···11-// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22-33-package tangled
44-55-// schema: sh.tangled.git.temp.getEntity
66-77-import (
88- "context"
99-1010- "github.com/bluesky-social/indigo/lex/util"
1111-)
1212-1313-const (
1414- GitTempGetEntityNSID = "sh.tangled.git.temp.getEntity"
1515-)
1616-1717-// GitTempGetEntity calls the XRPC method "sh.tangled.git.temp.getEntity".
1818-//
1919-// path: path of the entity
2020-// ref: Git reference (branch, tag, or commit SHA)
2121-// repo: DID of the repository
2222-func GitTempGetEntity(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempDefs_Blob, error) {
2323- var out GitTempDefs_Blob
2424-2525- params := map[string]interface{}{}
2626- params["path"] = path
2727- if ref != "" {
2828- params["ref"] = ref
2929- }
3030- params["repo"] = repo
3131- if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntity", params, nil, &out); err != nil {
3232- return nil, err
3333- }
3434-3535- return &out, nil
3636-}
+47
api/tangled/tempgetEntry.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.git.temp.getEntry
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ GitTempGetEntryNSID = "sh.tangled.git.temp.getEntry"
1515+)
1616+1717+// GitTempGetEntry_Output is the output of a sh.tangled.git.temp.getEntry call.
1818+type GitTempGetEntry_Output struct {
1919+ LastCommit *GitTempDefs_Commit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
2020+ Mode string `json:"mode" cborgen:"mode"`
2121+ // name: The file name
2222+ Name string `json:"name" cborgen:"name"`
2323+ Oid string `json:"oid" cborgen:"oid"`
2424+ // submodule: Submodule information if path is a submodule
2525+ Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"`
2626+}
2727+2828+// GitTempGetEntry calls the XRPC method "sh.tangled.git.temp.getEntry".
2929+//
3030+// path: path of the entity
3131+// ref: Git revision (branch, tag, or commit id)
3232+// repo: DID of the repository
3333+func GitTempGetEntry(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempGetEntry_Output, error) {
3434+ var out GitTempGetEntry_Output
3535+3636+ params := map[string]interface{}{}
3737+ params["path"] = path
3838+ if ref != "" {
3939+ params["ref"] = ref
4040+ }
4141+ params["repo"] = repo
4242+ if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntry", params, nil, &out); err != nil {
4343+ return nil, err
4444+ }
4545+4646+ return &out, nil
4747+}