forked from
tangled.org/core
this repo has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.git.temp.getBlob
6
7import (
8 "bytes"
9 "context"
10
11 "github.com/bluesky-social/indigo/lex/util"
12)
13
14const (
15 GitTempGetBlobNSID = "sh.tangled.git.temp.getBlob"
16)
17
18// GitTempGetBlob calls the XRPC method "sh.tangled.git.temp.getBlob".
19//
20// path: Path within the repository tree
21// ref: Git reference (branch, tag, or commit SHA)
22// repo: AT-URI of the repository
23func GitTempGetBlob(ctx context.Context, c util.LexClient, path string, ref string, repo string) ([]byte, error) {
24 buf := new(bytes.Buffer)
25
26 params := map[string]interface{}{}
27 params["path"] = path
28 if ref != "" {
29 params["ref"] = ref
30 }
31 params["repo"] = repo
32 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getBlob", params, nil, buf); err != nil {
33 return nil, err
34 }
35
36 return buf.Bytes(), nil
37}