forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.listSecrets
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoListSecretsNSID = "sh.tangled.repo.listSecrets"
15)
16
17// RepoListSecrets_Output is the output of a sh.tangled.repo.listSecrets call.
18type RepoListSecrets_Output struct {
19 Secrets []*RepoListSecrets_Secret `json:"secrets" cborgen:"secrets"`
20}
21
22// RepoListSecrets_Secret is a "secret" in the sh.tangled.repo.listSecrets schema.
23type RepoListSecrets_Secret struct {
24 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
25 CreatedBy string `json:"createdBy" cborgen:"createdBy"`
26 Key string `json:"key" cborgen:"key"`
27 Repo string `json:"repo" cborgen:"repo"`
28}
29
30// RepoListSecrets calls the XRPC method "sh.tangled.repo.listSecrets".
31func RepoListSecrets(ctx context.Context, c util.LexClient, repo string) (*RepoListSecrets_Output, error) {
32 var out RepoListSecrets_Output
33
34 params := map[string]interface{}{}
35 params["repo"] = repo
36 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.listSecrets", params, nil, &out); err != nil {
37 return nil, err
38 }
39
40 return &out, nil
41}