Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.git.temp.getBlob
import ( "bytes" "context"
"github.com/bluesky-social/indigo/lex/util")
const ( GitTempGetBlobNSID = "sh.tangled.git.temp.getBlob")
// GitTempGetBlob calls the XRPC method "sh.tangled.git.temp.getBlob".//// path: Path within the repository tree// ref: Git reference (branch, tag, or commit SHA)// repo: DID of the repositoryfunc GitTempGetBlob(ctx context.Context, c util.LexClient, path string, ref string, repo string) ([]byte, error) { buf := new(bytes.Buffer)
params := map[string]interface{}{} params["path"] = path if ref != "" { params["ref"] = ref } params["repo"] = repo if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getBlob", params, nil, buf); err != nil { return nil, err }
return buf.Bytes(), nil}