forked from tangled.org/core
this repo has no description
at knot-xrpc 946 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.fork 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoForkNSID = "sh.tangled.repo.fork" 15) 16 17// RepoFork_Input is the input argument to a sh.tangled.repo.fork call. 18type RepoFork_Input struct { 19 // did: DID of the user creating the fork 20 Did string `json:"did" cborgen:"did"` 21 // name: Name for the forked repository (defaults to basename of source) 22 Name *string `json:"name,omitempty" cborgen:"name,omitempty"` 23 // source: Source repository URL to fork from 24 Source string `json:"source" cborgen:"source"` 25} 26 27// RepoFork calls the XRPC method "sh.tangled.repo.fork". 28func RepoFork(ctx context.Context, c util.LexClient, input *RepoFork_Input) error { 29 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.fork", nil, input, nil); err != nil { 30 return err 31 } 32 33 return nil 34}