this repo has no description
at sl/knotmirror 36 lines 883 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.git.temp.getEntity 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GitTempGetEntityNSID = "sh.tangled.git.temp.getEntity" 15) 16 17// GitTempGetEntity calls the XRPC method "sh.tangled.git.temp.getEntity". 18// 19// path: path of the entity 20// ref: Git reference (branch, tag, or commit SHA) 21// repo: AT-URI of the repository 22func GitTempGetEntity(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempDefs_Blob, error) { 23 var out GitTempDefs_Blob 24 25 params := map[string]interface{}{} 26 params["path"] = path 27 if ref != "" { 28 params["ref"] = ref 29 } 30 params["repo"] = repo 31 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntity", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}