forked from tangled.org/core
this repo has no description
at master 1.0 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.create 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoCreateNSID = "sh.tangled.repo.create" 15) 16 17// RepoCreate_Input is the input argument to a sh.tangled.repo.create call. 18type RepoCreate_Input struct { 19 // defaultBranch: Default branch to push to 20 DefaultBranch *string `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"` 21 // rkey: Rkey of the repository record 22 Rkey string `json:"rkey" cborgen:"rkey"` 23 // source: A source URL to clone from, populate this when forking or importing a repository. 24 Source *string `json:"source,omitempty" cborgen:"source,omitempty"` 25} 26 27// RepoCreate calls the XRPC method "sh.tangled.repo.create". 28func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) error { 29 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil { 30 return err 31 } 32 33 return nil 34}