Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
959 B · 39 lines
Go
at master
12345678910111213141516171819202122232425262728293031323334353637383940// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.git.getArchive
import ( "bytes" "context"
"github.com/bluesky-social/indigo/lex/util")
const ( GitGetArchiveNSID = "org.tangled.git.getArchive")
// GitGetArchive calls the XRPC method "org.tangled.git.getArchive".//// format: Archive format// prefix: Prefix for files in the archive// ref: Git reference (branch, tag, or commit SHA)// repo: DID of the repositoryfunc GitGetArchive(ctx context.Context, c util.LexClient, format string, prefix string, ref string, repo string) ([]byte, error) { buf := new(bytes.Buffer)
params := map[string]interface{}{} if format != "" { params["format"] = format } params["prefix"] = prefix params["ref"] = ref params["repo"] = repo if err := c.LexDo(ctx, util.Query, "", "org.tangled.git.getArchive", params, nil, buf); err != nil { return nil, err }
return buf.Bytes(), nil}