forked from tangled.org/core
this repo has no description
at master 1.4 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.hiddenRef 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoHiddenRefNSID = "sh.tangled.repo.hiddenRef" 15) 16 17// RepoHiddenRef_Input is the input argument to a sh.tangled.repo.hiddenRef call. 18type RepoHiddenRef_Input struct { 19 // forkRef: Fork reference name 20 ForkRef string `json:"forkRef" cborgen:"forkRef"` 21 // remoteRef: Remote reference name 22 RemoteRef string `json:"remoteRef" cborgen:"remoteRef"` 23 // repo: AT-URI of the repository 24 Repo string `json:"repo" cborgen:"repo"` 25} 26 27// RepoHiddenRef_Output is the output of a sh.tangled.repo.hiddenRef call. 28type RepoHiddenRef_Output struct { 29 // error: Error message if creation failed 30 Error *string `json:"error,omitempty" cborgen:"error,omitempty"` 31 // ref: The created hidden ref name 32 Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 33 // success: Whether the hidden ref was created successfully 34 Success bool `json:"success" cborgen:"success"` 35} 36 37// RepoHiddenRef calls the XRPC method "sh.tangled.repo.hiddenRef". 38func RepoHiddenRef(ctx context.Context, c util.LexClient, input *RepoHiddenRef_Input) (*RepoHiddenRef_Output, error) { 39 var out RepoHiddenRef_Output 40 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.hiddenRef", nil, input, &out); err != nil { 41 return nil, err 42 } 43 44 return &out, nil 45}