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.repo.forkSync 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoForkSyncNSID = "sh.tangled.repo.forkSync" 15) 16 17// RepoForkSync_Input is the input argument to a sh.tangled.repo.forkSync call. 18type RepoForkSync_Input struct { 19 // branch: Branch to sync 20 Branch string `json:"branch" cborgen:"branch"` 21 // did: DID of the fork owner 22 Did string `json:"did" cborgen:"did"` 23 // name: Name of the forked repository 24 Name string `json:"name" cborgen:"name"` 25 // source: AT-URI of the source repository 26 Source string `json:"source" cborgen:"source"` 27} 28 29// RepoForkSync calls the XRPC method "sh.tangled.repo.forkSync". 30func RepoForkSync(ctx context.Context, c util.LexClient, input *RepoForkSync_Input) error { 31 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkSync", nil, input, nil); err != nil { 32 return err 33 } 34 35 return nil 36}