// 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: AT-URI of the repository func 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 }