Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.delete
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoDeleteNSID = "sh.tangled.repo.delete")
// RepoDelete_Input is the input argument to a sh.tangled.repo.delete call.type RepoDelete_Input struct { // did: DID of the repository owner. A knot without the repo-did-input capability reads this and name in place of repo. Did *string `json:"did,omitempty" cborgen:"did,omitempty"` // force: Admin-only. Delete even though the repository record still exists on the owner's PDS. Force *bool `json:"force,omitempty" cborgen:"force,omitempty"` // name: Name of the repository to delete. A knot without the repo-did-input capability reads this and DID in place of repo. Name *string `json:"name,omitempty" cborgen:"name,omitempty"` // repo: DID of the repository to delete Repo string `json:"repo" cborgen:"repo"` // rkey: Rkey of the repository record. A knot without the repo-did-input capability checks this against the owner's PDS. Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`}
// RepoDelete calls the XRPC method "sh.tangled.repo.delete".func RepoDelete(ctx context.Context, c util.LexClient, input *RepoDelete_Input) error { if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.delete", nil, input, nil); err != nil { return err }
return nil}