This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / repogetSiteConfig.go
1.6 kB 46 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: org.tangled.temp.repo.getSiteConfig 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 TempRepoGetSiteConfigNSID = "org.tangled.temp.repo.getSiteConfig" 15) 16 17// TempRepoGetSiteConfig_Output is the output of a org.tangled.temp.repo.getSiteConfig call. 18type TempRepoGetSiteConfig_Output struct { 19 // config: Site config for the repository. Absent if no site is configured. 20 Config *TempRepoGetSiteConfig_SiteConfig `json:"config,omitempty" cborgen:"config,omitempty"` 21} 22 23// TempRepoGetSiteConfig_SiteConfig is a "siteConfig" in the org.tangled.temp.repo.getSiteConfig schema. 24type TempRepoGetSiteConfig_SiteConfig struct { 25 // branch: Branch to deploy from. 26 Branch string `json:"branch" cborgen:"branch"` 27 // dir: Directory within the repository to deploy (e.g. '/' or '/docs'). 28 Dir string `json:"dir" cborgen:"dir"` 29 // isIndex: Whether this repo serves as the index (root) for the domain. 30 IsIndex bool `json:"isIndex" cborgen:"isIndex"` 31} 32 33// TempRepoGetSiteConfig calls the XRPC method "org.tangled.temp.repo.getSiteConfig". 34// 35// repoDid: DID of the repository as minted by the knot. 36func TempRepoGetSiteConfig(ctx context.Context, c util.LexClient, repoDid string) (*TempRepoGetSiteConfig_Output, error) { 37 var out TempRepoGetSiteConfig_Output 38 39 params := map[string]interface{}{} 40 params["repoDid"] = repoDid 41 if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.repo.getSiteConfig", params, nil, &out); err != nil { 42 return nil, err 43 } 44 45 return &out, nil 46}