Documentation
¶
Index ¶
- Constants
- func CiCancelPipeline(ctx context.Context, c util.LexClient, input *CiCancelPipeline_Input) error
- func CiSubscribePipelineLogs(ctx context.Context, c extlexutil.LexClient, pipeline string, ...) error
- func GitTempGetArchive(ctx context.Context, c util.LexClient, format string, prefix string, ...) ([]byte, error)
- func GitTempGetBlob(ctx context.Context, c util.LexClient, path string, ref string, repo string) ([]byte, error)
- func GitTempGetDiff(ctx context.Context, c util.LexClient, repo string, rev1 string, rev2 string) ([]byte, error)
- func GitTempGetTag(ctx context.Context, c util.LexClient, repo string, tag string) ([]byte, error)
- func GitTempListBranches(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
- func GitTempListCommits(ctx context.Context, c util.LexClient, cursor string, limit int64, ref string, ...) ([]byte, error)
- func GitTempListTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
- func KnotAddMember(ctx context.Context, c util.LexClient, input *KnotAddMember_Input) error
- func KnotRemoveMember(ctx context.Context, c util.LexClient, input *KnotRemoveMember_Input) error
- func PipelineCancelPipeline(ctx context.Context, c util.LexClient, input *PipelineCancelPipeline_Input) error
- func RepoAddCollaborator(ctx context.Context, c util.LexClient, input *RepoAddCollaborator_Input) error
- func RepoAddSecret(ctx context.Context, c util.LexClient, input *RepoAddSecret_Input) error
- func RepoArchive(ctx context.Context, c util.LexClient, format string, prefix string, ...) ([]byte, error)
- func RepoBranches(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
- func RepoCompare(ctx context.Context, c util.LexClient, repo string, rev1 string, rev2 string) ([]byte, error)
- func RepoDelete(ctx context.Context, c util.LexClient, input *RepoDelete_Input) error
- func RepoDeleteBranch(ctx context.Context, c util.LexClient, input *RepoDeleteBranch_Input) error
- func RepoDiff(ctx context.Context, c util.LexClient, ref string, repo string) ([]byte, error)
- func RepoForkSync(ctx context.Context, c util.LexClient, input *RepoForkSync_Input) error
- func RepoLog(ctx context.Context, c util.LexClient, cursor string, limit int64, path string, ...) ([]byte, error)
- func RepoMerge(ctx context.Context, c util.LexClient, input *RepoMerge_Input) error
- func RepoRemoveCollaborator(ctx context.Context, c util.LexClient, input *RepoRemoveCollaborator_Input) error
- func RepoRemoveSecret(ctx context.Context, c util.LexClient, input *RepoRemoveSecret_Input) error
- func RepoSetDefaultBranch(ctx context.Context, c util.LexClient, input *RepoSetDefaultBranch_Input) error
- func RepoTag(ctx context.Context, c util.LexClient, repo string, tag string) ([]byte, error)
- func RepoTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
- func SyncRequestCrawl(ctx context.Context, c util.LexClient, input *SyncRequestCrawl_Input) error
- type ActorProfile
- type CiCancelPipeline_Input
- type CiPipeline
- type CiPipeline_Trigger
- type CiPipeline_Workflow
- type CiQueryPipelines_Output
- type CiSubscribePipelineLogs_Control
- type CiSubscribePipelineLogs_Data
- type CiSubscribePipelineLogs_Event
- type CiTriggerPipeline_Input
- type CiTriggerPipeline_Input_Trigger
- type CiTriggerPipeline_Output
- type CiTrigger_Manual
- type CiTrigger_Pair
- type CiTrigger_PullRequest
- type CiTrigger_Push
- type FeedComment
- type FeedComment_Body
- type FeedReaction
- type FeedStar
- type FeedStar_Repo
- type FeedStar_String
- type FeedStar_Subject
- type GitListRefs_DefaultBranch
- type GitListRefs_Output
- type GitListRefs_Ref
- type GitRefUpdate
- type GitRefUpdate_CommitCountBreakdown
- type GitRefUpdate_IndividualEmailCommitCount
- type GitRefUpdate_IndividualLanguageSize
- type GitRefUpdate_LangBreakdown
- type GitRefUpdate_Meta
- type GitTempAnalyzeMerge_ConflictInfo
- type GitTempAnalyzeMerge_Output
- type GitTempDefs_Branch
- type GitTempDefs_Commit
- type GitTempDefs_Signature
- type GitTempDefs_Submodule
- type GitTempDefs_Tag
- type GitTempGetBranch_Output
- type GitTempGetEntry_Output
- type GitTempGetTree_LastCommit
- type GitTempGetTree_Output
- type GitTempGetTree_Readme
- type GitTempGetTree_Signature
- type GitTempGetTree_TreeEntry
- type GitTempListLanguages_Language
- type GitTempListLanguages_Output
- type GraphFollow
- type GraphVouch
- type Knot
- type KnotAddMember_Input
- type KnotListKeys_Output
- type KnotListKeys_PublicKey
- type KnotListMembersBy_Output
- type KnotListMembers_ListItem
- type KnotListMembers_Output
- type KnotMember
- type KnotRemoveMember_Input
- type KnotSubscribeRepos_GitSync1
- type KnotSubscribeRepos_GitSync2
- type KnotSubscribeRepos_Identity
- type KnotVersion_Output
- type LabelDefinition
- type LabelDefinition_ValueType
- type LabelOp
- type LabelOp_Operand
- type MarkupMarkdown
- type Owner_Output
- type Pipeline
- type PipelineCancelPipeline_Input
- type PipelineStatus
- type Pipeline_CloneOpts
- type Pipeline_ManualTriggerData
- type Pipeline_Pair
- type Pipeline_PullRequestTriggerData
- type Pipeline_PushTriggerData
- type Pipeline_TriggerMetadata
- type Pipeline_TriggerRepo
- type Pipeline_Workflow
- type PublicKey
- type Repo
- type RepoAddCollaborator_Input
- type RepoAddSecret_Input
- type RepoArtifact
- type RepoBlob_LastCommit
- type RepoBlob_Output
- type RepoBlob_Signature
- type RepoBlob_Submodule
- type RepoBranch_Output
- type RepoBranch_Signature
- type RepoCollaborator
- type RepoCreate_Input
- type RepoCreate_Output
- type RepoDeleteBranch_Input
- type RepoDelete_Input
- type RepoDescribeRepo_Output
- type RepoForkStatus_Input
- type RepoForkStatus_Output
- type RepoForkSync_Input
- type RepoGetDefaultBranch_Output
- type RepoGetDefaultBranch_Signature
- type RepoHiddenRef_Input
- type RepoHiddenRef_Output
- type RepoIssue
- type RepoIssueComment
- type RepoIssueState
- type RepoLanguages_Language
- type RepoLanguages_Output
- type RepoListCollaboratorsBy_Output
- type RepoListCollaborators_ListItem
- type RepoListCollaborators_Output
- type RepoListSecrets_Output
- type RepoListSecrets_Secret
- type RepoMergeCheck_ConflictInfo
- type RepoMergeCheck_Input
- type RepoMergeCheck_Output
- type RepoMerge_Input
- type RepoPull
- type RepoPullComment
- type RepoPullStatus
- type RepoPull_Round
- type RepoPull_Source
- type RepoPull_Target
- type RepoRemoveCollaborator_Input
- type RepoRemoveSecret_Input
- type RepoSetDefaultBranch_Input
- type RepoTree_LastCommit
- type RepoTree_Output
- type RepoTree_Readme
- type RepoTree_Signature
- type RepoTree_TreeEntry
- type Spindle
- type SpindleMember
- type String
- type SyncListRepos_DefaultBranch
- type SyncListRepos_Output
- type SyncListRepos_Repo
- type SyncRequestCrawl_Input
Constants ¶
const (
ActorProfileNSID = "sh.tangled.actor.profile"
)
const (
CiCancelPipelineNSID = "sh.tangled.ci.cancelPipeline"
)
const (
CiGetPipelineNSID = "sh.tangled.ci.getPipeline"
)
const (
CiPipelineNSID = "sh.tangled.ci.pipeline"
)
const (
CiQueryPipelinesNSID = "sh.tangled.ci.queryPipelines"
)
const (
CiSubscribePipelineLogsNSID = "sh.tangled.ci.subscribePipelineLogs"
)
const (
CiTriggerPipelineNSID = "sh.tangled.ci.triggerPipeline"
)
const (
FeedCommentNSID = "sh.tangled.feed.comment"
)
const (
FeedReactionNSID = "sh.tangled.feed.reaction"
)
const (
FeedStarNSID = "sh.tangled.feed.star"
)
const (
GitListRefsNSID = "sh.tangled.git.listRefs"
)
const (
GitRefUpdateNSID = "sh.tangled.git.refUpdate"
)
const (
GitTempAnalyzeMergeNSID = "sh.tangled.git.temp.analyzeMerge"
)
const (
GitTempGetArchiveNSID = "sh.tangled.git.temp.getArchive"
)
const (
GitTempGetBlobNSID = "sh.tangled.git.temp.getBlob"
)
const (
GitTempGetBranchNSID = "sh.tangled.git.temp.getBranch"
)
const (
GitTempGetCommitNSID = "sh.tangled.git.temp.getCommit"
)
const (
GitTempGetDiffNSID = "sh.tangled.git.temp.getDiff"
)
const (
GitTempGetEntryNSID = "sh.tangled.git.temp.getEntry"
)
const (
GitTempGetHeadNSID = "sh.tangled.git.temp.getHead"
)
const (
GitTempGetTagNSID = "sh.tangled.git.temp.getTag"
)
const (
GitTempGetTreeNSID = "sh.tangled.git.temp.getTree"
)
const (
GitTempListBranchesNSID = "sh.tangled.git.temp.listBranches"
)
const (
GitTempListCommitsNSID = "sh.tangled.git.temp.listCommits"
)
const (
GitTempListLanguagesNSID = "sh.tangled.git.temp.listLanguages"
)
const (
GitTempListTagsNSID = "sh.tangled.git.temp.listTags"
)
const (
GraphFollowNSID = "sh.tangled.graph.follow"
)
const (
GraphVouchNSID = "sh.tangled.graph.vouch"
)
const (
KnotAddMemberNSID = "sh.tangled.knot.addMember"
)
const (
KnotListKeysNSID = "sh.tangled.knot.listKeys"
)
const (
KnotListMembersByNSID = "sh.tangled.knot.listMembersBy"
)
const (
KnotListMembersNSID = "sh.tangled.knot.listMembers"
)
const (
KnotMemberNSID = "sh.tangled.knot.member"
)
const (
KnotNSID = "sh.tangled.knot"
)
const (
KnotRemoveMemberNSID = "sh.tangled.knot.removeMember"
)
const (
KnotSubscribeReposNSID = "sh.tangled.knot.subscribeRepos"
)
const (
KnotVersionNSID = "sh.tangled.knot.version"
)
const (
LabelDefinitionNSID = "sh.tangled.label.definition"
)
const (
LabelOpNSID = "sh.tangled.label.op"
)
const (
MarkupMarkdownNSID = "sh.tangled.markup.markdown"
)
const (
OwnerNSID = "sh.tangled.owner"
)
const (
PipelineCancelPipelineNSID = "sh.tangled.pipeline.cancelPipeline"
)
const (
PipelineNSID = "sh.tangled.pipeline"
)
const (
PipelineStatusNSID = "sh.tangled.pipeline.status"
)
const (
PublicKeyNSID = "sh.tangled.publicKey"
)
const (
RepoAddCollaboratorNSID = "sh.tangled.repo.addCollaborator"
)
const (
RepoAddSecretNSID = "sh.tangled.repo.addSecret"
)
const (
RepoArchiveNSID = "sh.tangled.repo.archive"
)
const (
RepoArtifactNSID = "sh.tangled.repo.artifact"
)
const (
RepoBlobNSID = "sh.tangled.repo.blob"
)
const (
RepoBranchNSID = "sh.tangled.repo.branch"
)
const (
RepoBranchesNSID = "sh.tangled.repo.branches"
)
const (
RepoCollaboratorNSID = "sh.tangled.repo.collaborator"
)
const (
RepoCompareNSID = "sh.tangled.repo.compare"
)
const (
RepoCreateNSID = "sh.tangled.repo.create"
)
const (
RepoDeleteBranchNSID = "sh.tangled.repo.deleteBranch"
)
const (
RepoDeleteNSID = "sh.tangled.repo.delete"
)
const (
RepoDescribeRepoNSID = "sh.tangled.repo.describeRepo"
)
const (
RepoDiffNSID = "sh.tangled.repo.diff"
)
const (
RepoForkStatusNSID = "sh.tangled.repo.forkStatus"
)
const (
RepoForkSyncNSID = "sh.tangled.repo.forkSync"
)
const (
RepoGetDefaultBranchNSID = "sh.tangled.repo.getDefaultBranch"
)
const (
RepoHiddenRefNSID = "sh.tangled.repo.hiddenRef"
)
const (
RepoIssueCommentNSID = "sh.tangled.repo.issue.comment"
)
const (
RepoIssueNSID = "sh.tangled.repo.issue"
)
const RepoIssueStateClosed = "sh.tangled.repo.issue.state.closed"
const (
RepoIssueStateClosedNSID = "sh.tangled.repo.issue.state.closed"
)
const (
RepoIssueStateNSID = "sh.tangled.repo.issue.state"
)
const RepoIssueStateOpen = "sh.tangled.repo.issue.state.open"
const (
RepoIssueStateOpenNSID = "sh.tangled.repo.issue.state.open"
)
const (
RepoLanguagesNSID = "sh.tangled.repo.languages"
)
const (
RepoListCollaboratorsByNSID = "sh.tangled.repo.listCollaboratorsBy"
)
const (
RepoListCollaboratorsNSID = "sh.tangled.repo.listCollaborators"
)
const (
RepoListSecretsNSID = "sh.tangled.repo.listSecrets"
)
const (
RepoLogNSID = "sh.tangled.repo.log"
)
const (
RepoMergeCheckNSID = "sh.tangled.repo.mergeCheck"
)
const (
RepoMergeNSID = "sh.tangled.repo.merge"
)
const (
RepoNSID = "sh.tangled.repo"
)
const (
RepoPullCommentNSID = "sh.tangled.repo.pull.comment"
)
const (
RepoPullNSID = "sh.tangled.repo.pull"
)
const RepoPullStatusClosed = "sh.tangled.repo.pull.status.closed"
const (
RepoPullStatusClosedNSID = "sh.tangled.repo.pull.status.closed"
)
const RepoPullStatusMerged = "sh.tangled.repo.pull.status.merged"
const (
RepoPullStatusMergedNSID = "sh.tangled.repo.pull.status.merged"
)
const (
RepoPullStatusNSID = "sh.tangled.repo.pull.status"
)
const RepoPullStatusOpen = "sh.tangled.repo.pull.status.open"
const (
RepoPullStatusOpenNSID = "sh.tangled.repo.pull.status.open"
)
const (
RepoRemoveCollaboratorNSID = "sh.tangled.repo.removeCollaborator"
)
const (
RepoRemoveSecretNSID = "sh.tangled.repo.removeSecret"
)
const (
RepoSetDefaultBranchNSID = "sh.tangled.repo.setDefaultBranch"
)
const (
RepoTagNSID = "sh.tangled.repo.tag"
)
const (
RepoTagsNSID = "sh.tangled.repo.tags"
)
const (
RepoTreeNSID = "sh.tangled.repo.tree"
)
const (
SpindleMemberNSID = "sh.tangled.spindle.member"
)
const (
SpindleNSID = "sh.tangled.spindle"
)
const (
StringNSID = "sh.tangled.string"
)
const (
SyncListReposNSID = "sh.tangled.sync.listRepos"
)
const (
SyncRequestCrawlNSID = "sh.tangled.sync.requestCrawl"
)
Variables ¶
This section is empty.
Functions ¶
func CiCancelPipeline ¶
CiCancelPipeline calls the XRPC method "sh.tangled.ci.cancelPipeline".
func CiSubscribePipelineLogs ¶
func CiSubscribePipelineLogs(ctx context.Context, c extlexutil.LexClient, pipeline string, workflows []string, sched extlexutil.Scheduler[CiSubscribePipelineLogs_Event]) error
func GitTempGetArchive ¶
func GitTempGetArchive(ctx context.Context, c util.LexClient, format string, prefix string, ref string, repo string) ([]byte, error)
GitTempGetArchive calls the XRPC method "sh.tangled.git.temp.getArchive".
format: Archive format prefix: Prefix for files in the archive ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
func GitTempGetBlob ¶
func GitTempGetBlob(ctx context.Context, c util.LexClient, path string, ref string, repo string) ([]byte, error)
GitTempGetBlob calls the XRPC method "sh.tangled.git.temp.getBlob".
path: Path within the repository tree ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
func GitTempGetDiff ¶
func GitTempGetDiff(ctx context.Context, c util.LexClient, repo string, rev1 string, rev2 string) ([]byte, error)
GitTempGetDiff calls the XRPC method "sh.tangled.git.temp.getDiff".
repo: DID of the repository rev1: First revision (commit, branch, or tag) rev2: Second revision (commit, branch, or tag)
func GitTempGetTag ¶
GitTempGetTag calls the XRPC method "sh.tangled.git.temp.getTag".
repo: DID of the repository tag: Name of tag, such as v1.3.0
func GitTempListBranches ¶
func GitTempListBranches(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
GitTempListBranches calls the XRPC method "sh.tangled.git.temp.listBranches".
cursor: Pagination cursor limit: Maximum number of branches to return repo: DID of the repository
func GitTempListCommits ¶
func GitTempListCommits(ctx context.Context, c util.LexClient, cursor string, limit int64, ref string, repo string) ([]byte, error)
GitTempListCommits calls the XRPC method "sh.tangled.git.temp.listCommits".
cursor: Pagination cursor (commit SHA) limit: Maximum number of commits to return ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
func GitTempListTags ¶
func GitTempListTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
GitTempListTags calls the XRPC method "sh.tangled.git.temp.listTags".
cursor: Pagination cursor limit: Maximum number of tags to return repo: DID of the repository
func KnotAddMember ¶
KnotAddMember calls the XRPC method "sh.tangled.knot.addMember".
func KnotRemoveMember ¶
KnotRemoveMember calls the XRPC method "sh.tangled.knot.removeMember".
func PipelineCancelPipeline ¶
func PipelineCancelPipeline(ctx context.Context, c util.LexClient, input *PipelineCancelPipeline_Input) error
PipelineCancelPipeline calls the XRPC method "sh.tangled.pipeline.cancelPipeline".
func RepoAddCollaborator ¶
func RepoAddCollaborator(ctx context.Context, c util.LexClient, input *RepoAddCollaborator_Input) error
RepoAddCollaborator calls the XRPC method "sh.tangled.repo.addCollaborator".
func RepoAddSecret ¶
RepoAddSecret calls the XRPC method "sh.tangled.repo.addSecret".
func RepoArchive ¶
func RepoArchive(ctx context.Context, c util.LexClient, format string, prefix string, ref string, repo string) ([]byte, error)
RepoArchive calls the XRPC method "sh.tangled.repo.archive".
format: Archive format prefix: Prefix for files in the archive ref: Git reference (branch, tag, or commit SHA) repo: Repository identifier in format 'did:plc:.../repoName'
func RepoBranches ¶
func RepoBranches(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
RepoBranches calls the XRPC method "sh.tangled.repo.branches".
cursor: Pagination cursor limit: Maximum number of branches to return repo: Repository identifier in format 'did:plc:.../repoName'
func RepoCompare ¶
func RepoCompare(ctx context.Context, c util.LexClient, repo string, rev1 string, rev2 string) ([]byte, error)
RepoCompare calls the XRPC method "sh.tangled.repo.compare".
repo: Repository identifier in format 'did:plc:.../repoName' rev1: First revision (commit, branch, or tag) rev2: Second revision (commit, branch, or tag)
func RepoDelete ¶
RepoDelete calls the XRPC method "sh.tangled.repo.delete".
func RepoDeleteBranch ¶
RepoDeleteBranch calls the XRPC method "sh.tangled.repo.deleteBranch".
func RepoDiff ¶
RepoDiff calls the XRPC method "sh.tangled.repo.diff".
ref: Git reference (branch, tag, or commit SHA) repo: Repository identifier in format 'did:plc:.../repoName'
func RepoForkSync ¶
RepoForkSync calls the XRPC method "sh.tangled.repo.forkSync".
func RepoLog ¶
func RepoLog(ctx context.Context, c util.LexClient, cursor string, limit int64, path string, ref string, repo string) ([]byte, error)
RepoLog calls the XRPC method "sh.tangled.repo.log".
cursor: Pagination cursor (commit SHA) limit: Maximum number of commits to return path: Path to filter commits by ref: Git reference (branch, tag, or commit SHA) repo: Repository identifier in format 'did:plc:.../repoName'
func RepoMerge ¶
RepoMerge calls the XRPC method "sh.tangled.repo.merge".
func RepoRemoveCollaborator ¶
func RepoRemoveCollaborator(ctx context.Context, c util.LexClient, input *RepoRemoveCollaborator_Input) error
RepoRemoveCollaborator calls the XRPC method "sh.tangled.repo.removeCollaborator".
func RepoRemoveSecret ¶
RepoRemoveSecret calls the XRPC method "sh.tangled.repo.removeSecret".
func RepoSetDefaultBranch ¶
func RepoSetDefaultBranch(ctx context.Context, c util.LexClient, input *RepoSetDefaultBranch_Input) error
RepoSetDefaultBranch calls the XRPC method "sh.tangled.repo.setDefaultBranch".
func RepoTag ¶
RepoTag calls the XRPC method "sh.tangled.repo.tag".
repo: Repository identifier in format 'did:plc:.../repoName' tag: Name of tag, such as v1.3.0
func RepoTags ¶
func RepoTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error)
RepoTags calls the XRPC method "sh.tangled.repo.tags".
cursor: Pagination cursor limit: Maximum number of tags to return repo: Repository identifier in format 'did:plc:.../repoName'
Types ¶
type ActorProfile ¶
type ActorProfile struct {
LexiconTypeID string `json:"$type,const=sh.tangled.actor.profile" cborgen:"$type,const=sh.tangled.actor.profile"`
// avatar: Small image to be displayed next to posts from account. AKA, 'profile picture'
Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
// bluesky: Include link to this account on Bluesky.
Bluesky bool `json:"bluesky" cborgen:"bluesky"`
// description: Free-form profile description text.
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
Links []string `json:"links,omitempty" cborgen:"links,omitempty"`
// location: Free-form location text.
Location *string `json:"location,omitempty" cborgen:"location,omitempty"`
// pinnedRepositories: Pinned repositories. Values are repo DIDs for repos that have them, or AT-URIs for legacy repos.
PinnedRepositories []string `json:"pinnedRepositories,omitempty" cborgen:"pinnedRepositories,omitempty"`
// preferredHandle: A handle the user prefers to be displayed as.
PreferredHandle *string `json:"preferredHandle,omitempty" cborgen:"preferredHandle,omitempty"`
// pronouns: Preferred gender pronouns.
Pronouns *string `json:"pronouns,omitempty" cborgen:"pronouns,omitempty"`
Stats []string `json:"stats,omitempty" cborgen:"stats,omitempty"`
}
RECORDTYPE: ActorProfile
func (*ActorProfile) MarshalCBOR ¶
func (t *ActorProfile) MarshalCBOR(w io.Writer) error
func (*ActorProfile) UnmarshalCBOR ¶
func (t *ActorProfile) UnmarshalCBOR(r io.Reader) (err error)
type CiCancelPipeline_Input ¶
type CiCancelPipeline_Input struct {
// pipeline: pipeline TID
Pipeline string `json:"pipeline" cborgen:"pipeline"`
// repo: git repository DID
Repo string `json:"repo" cborgen:"repo"`
// workflows: Workflow names to filter. When not provided, entire pipeline will be canceled.
Workflows []string `json:"workflows,omitempty" cborgen:"workflows,omitempty"`
}
CiCancelPipeline_Input is the input argument to a sh.tangled.ci.cancelPipeline call.
type CiPipeline ¶
type CiPipeline struct {
// commit: Commit Id this pipeline is running on
Commit string `json:"commit" cborgen:"commit"`
CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
// id: Spindle-local pipeline id
Id string `json:"id" cborgen:"id"`
// repo: Repository DID
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
// sourceRepo: Repository DID that the commit was checked out from, if different from repo (e.g. a fork for a fork-based pull request)
SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
// trigger: Trigger event metadata
Trigger *CiPipeline_Trigger `json:"trigger" cborgen:"trigger"`
// workflows: Triggered workflows
Workflows []*CiPipeline_Workflow `json:"workflows" cborgen:"workflows"`
}
CiPipeline is a "main" in the sh.tangled.ci.pipeline schema.
A CI pipeline. Record-like, but owned by the spindle rather than a PDS.
func CiGetPipeline ¶
CiGetPipeline calls the XRPC method "sh.tangled.ci.getPipeline".
pipeline: Spindle-local pipeline id
func (*CiPipeline) MarshalCBOR ¶
func (t *CiPipeline) MarshalCBOR(w io.Writer) error
func (*CiPipeline) UnmarshalCBOR ¶
func (t *CiPipeline) UnmarshalCBOR(r io.Reader) (err error)
type CiPipeline_Trigger ¶
type CiPipeline_Trigger struct {
CiTrigger_Push *CiTrigger_Push
CiTrigger_PullRequest *CiTrigger_PullRequest
CiTrigger_Manual *CiTrigger_Manual
}
Trigger event metadata
func (*CiPipeline_Trigger) MarshalCBOR ¶
func (t *CiPipeline_Trigger) MarshalCBOR(w io.Writer) error
func (*CiPipeline_Trigger) MarshalJSON ¶
func (t *CiPipeline_Trigger) MarshalJSON() ([]byte, error)
func (*CiPipeline_Trigger) UnmarshalCBOR ¶
func (t *CiPipeline_Trigger) UnmarshalCBOR(r io.Reader) (err error)
func (*CiPipeline_Trigger) UnmarshalJSON ¶
func (t *CiPipeline_Trigger) UnmarshalJSON(b []byte) error
type CiPipeline_Workflow ¶
type CiPipeline_Workflow struct {
Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
FinishedAt *string `json:"finishedAt,omitempty" cborgen:"finishedAt,omitempty"`
// id: Spindle-local workflow id. Unique per pipeline, usually same as name.
Id string `json:"id" cborgen:"id"`
// name: Name of the workflow
Name string `json:"name" cborgen:"name"`
StartedAt *string `json:"startedAt,omitempty" cborgen:"startedAt,omitempty"`
// status: Workflow status
Status string `json:"status" cborgen:"status"`
}
CiPipeline_Workflow is a "workflow" in the sh.tangled.ci.pipeline schema.
func (*CiPipeline_Workflow) MarshalCBOR ¶
func (t *CiPipeline_Workflow) MarshalCBOR(w io.Writer) error
func (*CiPipeline_Workflow) UnmarshalCBOR ¶
func (t *CiPipeline_Workflow) UnmarshalCBOR(r io.Reader) (err error)
type CiQueryPipelines_Output ¶
type CiQueryPipelines_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Pipelines []*CiPipeline `json:"pipelines" cborgen:"pipelines"`
// total: Maximum number of pipelines
Total int64 `json:"total" cborgen:"total"`
}
CiQueryPipelines_Output is the output of a sh.tangled.ci.queryPipelines call.
func CiQueryPipelines ¶
func CiQueryPipelines(ctx context.Context, c util.LexClient, commits []string, cursor string, kinds []string, limit int64, repo string) (*CiQueryPipelines_Output, error)
CiQueryPipelines calls the XRPC method "sh.tangled.ci.queryPipelines".
commits: Filter pipelines by commits. When provided, maximum one pipeline per commit id will be returned. cursor: Pagination cursor kinds: Filter pipelines by trigger kind. When provided, pipelines matching any listed kind are returned; when omitted, every kind is returned. limit: Maximum number of pipelines to return repo: DID of the repository
type CiSubscribePipelineLogs_Control ¶
type CiSubscribePipelineLogs_Control struct {
// command: Step command
Command *string `json:"command,omitempty" cborgen:"command,omitempty"`
Content string `json:"content" cborgen:"content"`
// kind: Step kind
Kind *string `json:"kind,omitempty" cborgen:"kind,omitempty"`
// status: Step status
Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
// step: Step ID
Step int64 `json:"step" cborgen:"step"`
Time string `json:"time" cborgen:"time"`
// workflow: workflow name
Workflow string `json:"workflow" cborgen:"workflow"`
}
CiSubscribePipelineLogs_Control is a "control" in the sh.tangled.ci.subscribePipelineLogs schema.
func (*CiSubscribePipelineLogs_Control) MarshalCBOR ¶
func (t *CiSubscribePipelineLogs_Control) MarshalCBOR(w io.Writer) error
func (*CiSubscribePipelineLogs_Control) UnmarshalCBOR ¶
func (t *CiSubscribePipelineLogs_Control) UnmarshalCBOR(r io.Reader) (err error)
type CiSubscribePipelineLogs_Data ¶
type CiSubscribePipelineLogs_Data struct {
Content string `json:"content" cborgen:"content"`
// step: Step ID
Step int64 `json:"step" cborgen:"step"`
Stream string `json:"stream" cborgen:"stream"`
Time string `json:"time" cborgen:"time"`
// workflow: workflow name
Workflow string `json:"workflow" cborgen:"workflow"`
}
CiSubscribePipelineLogs_Data is a "data" in the sh.tangled.ci.subscribePipelineLogs schema.
func (*CiSubscribePipelineLogs_Data) MarshalCBOR ¶
func (t *CiSubscribePipelineLogs_Data) MarshalCBOR(w io.Writer) error
func (*CiSubscribePipelineLogs_Data) UnmarshalCBOR ¶
func (t *CiSubscribePipelineLogs_Data) UnmarshalCBOR(r io.Reader) (err error)
type CiSubscribePipelineLogs_Event ¶
type CiSubscribePipelineLogs_Event struct {
Error *events.ErrorFrame
Control *CiSubscribePipelineLogs_Control
Data *CiSubscribePipelineLogs_Data
// some private fields for internal routing perf
Preserialized []byte `json:"-" cborgen:"-"`
}
TODO: generate codes below from lexicon
func (*CiSubscribePipelineLogs_Event) Deserialize ¶
func (xevt *CiSubscribePipelineLogs_Event) Deserialize(r io.Reader) error
func (*CiSubscribePipelineLogs_Event) Serialize ¶
func (xevt *CiSubscribePipelineLogs_Event) Serialize(wc io.Writer) error
type CiTriggerPipeline_Input ¶
type CiTriggerPipeline_Input struct {
// repo: Target repository DID. Auth is checked against this repo.
Repo string `json:"repo" cborgen:"repo"`
// trigger: Trigger metadata for this dispatch.
Trigger *CiTriggerPipeline_Input_Trigger `json:"trigger" cborgen:"trigger"`
// workflows: Workflow names to run. When not provided, every dispatchable workflow is run.
Workflows []string `json:"workflows,omitempty" cborgen:"workflows,omitempty"`
}
CiTriggerPipeline_Input is the input argument to a sh.tangled.ci.triggerPipeline call.
type CiTriggerPipeline_Input_Trigger ¶
type CiTriggerPipeline_Input_Trigger struct {
CiTrigger_Manual *CiTrigger_Manual
CiTrigger_PullRequest *CiTrigger_PullRequest
}
Trigger metadata for this dispatch.
func (*CiTriggerPipeline_Input_Trigger) MarshalJSON ¶
func (t *CiTriggerPipeline_Input_Trigger) MarshalJSON() ([]byte, error)
func (*CiTriggerPipeline_Input_Trigger) UnmarshalJSON ¶
func (t *CiTriggerPipeline_Input_Trigger) UnmarshalJSON(b []byte) error
type CiTriggerPipeline_Output ¶
type CiTriggerPipeline_Output struct {
// pipeline: AT-URI of the created pipeline
Pipeline string `json:"pipeline" cborgen:"pipeline"`
}
CiTriggerPipeline_Output is the output of a sh.tangled.ci.triggerPipeline call.
func CiTriggerPipeline ¶
func CiTriggerPipeline(ctx context.Context, c util.LexClient, input *CiTriggerPipeline_Input) (*CiTriggerPipeline_Output, error)
CiTriggerPipeline calls the XRPC method "sh.tangled.ci.triggerPipeline".
type CiTrigger_Manual ¶
type CiTrigger_Manual struct {
LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#manual" cborgen:"$type,const=sh.tangled.ci.trigger#manual"`
Inputs []*CiTrigger_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
// ref: optional ref the SHA was resolved from, for display and TANGLED_REF
Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
// sha: commit SHA the manual run targets
Sha string `json:"sha" cborgen:"sha"`
// sourceRepo: Repository DID to check out code and workflow definitions from, if different from the target repo.
SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
}
CiTrigger_Manual is a "manual" in the sh.tangled.ci.trigger schema.
RECORDTYPE: CiTrigger_Manual
func (*CiTrigger_Manual) MarshalCBOR ¶
func (t *CiTrigger_Manual) MarshalCBOR(w io.Writer) error
func (*CiTrigger_Manual) UnmarshalCBOR ¶
func (t *CiTrigger_Manual) UnmarshalCBOR(r io.Reader) (err error)
type CiTrigger_Pair ¶
type CiTrigger_Pair struct {
Key string `json:"key" cborgen:"key"`
Value string `json:"value" cborgen:"value"`
}
CiTrigger_Pair is a "pair" in the sh.tangled.ci.trigger schema.
func (*CiTrigger_Pair) MarshalCBOR ¶
func (t *CiTrigger_Pair) MarshalCBOR(w io.Writer) error
func (*CiTrigger_Pair) UnmarshalCBOR ¶
func (t *CiTrigger_Pair) UnmarshalCBOR(r io.Reader) (err error)
type CiTrigger_PullRequest ¶
type CiTrigger_PullRequest struct {
LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#pullRequest" cborgen:"$type,const=sh.tangled.ci.trigger#pullRequest"`
// pull: AT-URI of the sh.tangled.repo.pull record this run belongs to
Pull *string `json:"pull,omitempty" cborgen:"pull,omitempty"`
SourceBranch *string `json:"sourceBranch,omitempty" cborgen:"sourceBranch,omitempty"`
// sourceRepo: Repository DID to check out code and workflow definitions from, if different from the target repo.
SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
}
CiTrigger_PullRequest is a "pullRequest" in the sh.tangled.ci.trigger schema.
TODO: reference PR record with strongRef instead of embedding raw values
RECORDTYPE: CiTrigger_PullRequest
func (*CiTrigger_PullRequest) MarshalCBOR ¶
func (t *CiTrigger_PullRequest) MarshalCBOR(w io.Writer) error
func (*CiTrigger_PullRequest) UnmarshalCBOR ¶
func (t *CiTrigger_PullRequest) UnmarshalCBOR(r io.Reader) (err error)
type CiTrigger_Push ¶
type CiTrigger_Push struct {
LexiconTypeID string `json:"$type,const=sh.tangled.ci.trigger#push" cborgen:"$type,const=sh.tangled.ci.trigger#push"`
NewSha string `json:"newSha" cborgen:"newSha"`
OldSha string `json:"oldSha" cborgen:"oldSha"`
Ref string `json:"ref" cborgen:"ref"`
}
CiTrigger_Push is a "push" in the sh.tangled.ci.trigger schema.
RECORDTYPE: CiTrigger_Push
func (*CiTrigger_Push) MarshalCBOR ¶
func (t *CiTrigger_Push) MarshalCBOR(w io.Writer) error
func (*CiTrigger_Push) UnmarshalCBOR ¶
func (t *CiTrigger_Push) UnmarshalCBOR(r io.Reader) (err error)
type FeedComment ¶
type FeedComment struct {
LexiconTypeID string `json:"$type,const=sh.tangled.feed.comment" cborgen:"$type,const=sh.tangled.feed.comment"`
Body *FeedComment_Body `json:"body" cborgen:"body"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// pullRoundIdx: optional pull submission round index. required when subject is sh.tangled.repo.pull
PullRoundIdx *int64 `json:"pullRoundIdx,omitempty" cborgen:"pullRoundIdx,omitempty"`
ReplyTo *comatprototypes.RepoStrongRef `json:"replyTo,omitempty" cborgen:"replyTo,omitempty"`
Subject *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"`
}
RECORDTYPE: FeedComment
func (*FeedComment) MarshalCBOR ¶
func (t *FeedComment) MarshalCBOR(w io.Writer) error
func (*FeedComment) UnmarshalCBOR ¶
func (t *FeedComment) UnmarshalCBOR(r io.Reader) (err error)
type FeedComment_Body ¶
type FeedComment_Body struct {
MarkupMarkdown *MarkupMarkdown
}
func (*FeedComment_Body) MarshalCBOR ¶
func (t *FeedComment_Body) MarshalCBOR(w io.Writer) error
func (*FeedComment_Body) MarshalJSON ¶
func (t *FeedComment_Body) MarshalJSON() ([]byte, error)
func (*FeedComment_Body) UnmarshalCBOR ¶
func (t *FeedComment_Body) UnmarshalCBOR(r io.Reader) error
func (*FeedComment_Body) UnmarshalJSON ¶
func (t *FeedComment_Body) UnmarshalJSON(b []byte) error
type FeedReaction ¶
type FeedReaction struct {
LexiconTypeID string `json:"$type,const=sh.tangled.feed.reaction" cborgen:"$type,const=sh.tangled.feed.reaction"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Reaction string `json:"reaction" cborgen:"reaction"`
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: FeedReaction
func (*FeedReaction) MarshalCBOR ¶
func (t *FeedReaction) MarshalCBOR(w io.Writer) error
func (*FeedReaction) UnmarshalCBOR ¶
func (t *FeedReaction) UnmarshalCBOR(r io.Reader) (err error)
type FeedStar ¶
type FeedStar struct {
LexiconTypeID string `json:"$type,const=sh.tangled.feed.star" cborgen:"$type,const=sh.tangled.feed.star"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Subject *FeedStar_Subject `json:"subject" cborgen:"subject"`
}
RECORDTYPE: FeedStar
type FeedStar_Repo ¶
type FeedStar_Repo struct {
LexiconTypeID string `json:"$type,const=sh.tangled.feed.star#repo" cborgen:"$type,const=sh.tangled.feed.star#repo"`
Did string `json:"did" cborgen:"did"`
}
FeedStar_Repo is a "repo" in the sh.tangled.feed.star schema.
RECORDTYPE: FeedStar_Repo
func (*FeedStar_Repo) MarshalCBOR ¶
func (t *FeedStar_Repo) MarshalCBOR(w io.Writer) error
func (*FeedStar_Repo) UnmarshalCBOR ¶
func (t *FeedStar_Repo) UnmarshalCBOR(r io.Reader) (err error)
type FeedStar_String ¶
type FeedStar_String struct {
LexiconTypeID string `json:"$type,const=sh.tangled.feed.star#string" cborgen:"$type,const=sh.tangled.feed.star#string"`
Uri string `json:"uri" cborgen:"uri"`
}
FeedStar_String is a "string" in the sh.tangled.feed.star schema.
RECORDTYPE: FeedStar_String
func (*FeedStar_String) MarshalCBOR ¶
func (t *FeedStar_String) MarshalCBOR(w io.Writer) error
func (*FeedStar_String) UnmarshalCBOR ¶
func (t *FeedStar_String) UnmarshalCBOR(r io.Reader) (err error)
type FeedStar_Subject ¶
type FeedStar_Subject struct {
FeedStar_Repo *FeedStar_Repo
FeedStar_String *FeedStar_String
}
func (*FeedStar_Subject) MarshalCBOR ¶
func (t *FeedStar_Subject) MarshalCBOR(w io.Writer) error
func (*FeedStar_Subject) MarshalJSON ¶
func (t *FeedStar_Subject) MarshalJSON() ([]byte, error)
func (*FeedStar_Subject) UnmarshalCBOR ¶
func (t *FeedStar_Subject) UnmarshalCBOR(r io.Reader) error
func (*FeedStar_Subject) UnmarshalJSON ¶
func (t *FeedStar_Subject) UnmarshalJSON(b []byte) error
type GitListRefs_DefaultBranch ¶
type GitListRefs_DefaultBranch struct {
// head: Commit SHA at the tip of the default branch, for reconciling against a last-known state. Width depends on the repo's git object-format.
Head *string `json:"head,omitempty" cborgen:"head,omitempty"`
// ref: Default branch ref name that HEAD points at, eg. refs/heads/main.
Ref string `json:"ref" cborgen:"ref"`
}
GitListRefs_DefaultBranch is a "defaultBranch" in the sh.tangled.git.listRefs schema.
type GitListRefs_Output ¶
type GitListRefs_Output struct {
// cursor: Cursor for the next page, absent when the last page is reached
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
DefaultBranch *GitListRefs_DefaultBranch `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"`
Refs []*GitListRefs_Ref `json:"refs" cborgen:"refs"`
}
GitListRefs_Output is the output of a sh.tangled.git.listRefs call.
func GitListRefs ¶
func GitListRefs(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) (*GitListRefs_Output, error)
GitListRefs calls the XRPC method "sh.tangled.git.listRefs".
cursor: Pagination cursor limit: Maximum number of refs to return in this page repo: DID of the git repo as minted by the knot
type GitListRefs_Ref ¶
type GitListRefs_Ref struct {
// ref: Full ref name, eg. refs/heads/main or refs/tags/v1.0
Ref string `json:"ref" cborgen:"ref"`
// sha: Object SHA the ref points at. Width depends on the repo's git object-format.
Sha string `json:"sha" cborgen:"sha"`
}
GitListRefs_Ref is a "ref" in the sh.tangled.git.listRefs schema.
type GitRefUpdate ¶
type GitRefUpdate struct {
LexiconTypeID string `json:"$type,const=sh.tangled.git.refUpdate" cborgen:"$type,const=sh.tangled.git.refUpdate"`
// changedFiles: files changed between commits
ChangedFiles []string `json:"changedFiles,omitempty" cborgen:"changedFiles,omitempty"`
// committerDid: did of the user that pushed this ref
CommitterDid string `json:"committerDid" cborgen:"committerDid"`
Meta *GitRefUpdate_Meta `json:"meta" cborgen:"meta"`
// newSha: new SHA of this ref
NewSha string `json:"newSha" cborgen:"newSha"`
// oldSha: old SHA of this ref
OldSha string `json:"oldSha" cborgen:"oldSha"`
// ownerDid: did of the owner of the repo
OwnerDid *string `json:"ownerDid,omitempty" cborgen:"ownerDid,omitempty"`
// pushOptions: push options passed on git-push
PushOptions []string `json:"pushOptions,omitempty" cborgen:"pushOptions,omitempty"`
// ref: Ref being updated
Ref string `json:"ref" cborgen:"ref"`
// repo: DID of the repo itself
Repo string `json:"repo" cborgen:"repo"`
}
RECORDTYPE: GitRefUpdate
func (*GitRefUpdate) MarshalCBOR ¶
func (t *GitRefUpdate) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate) UnmarshalCBOR ¶
func (t *GitRefUpdate) UnmarshalCBOR(r io.Reader) (err error)
type GitRefUpdate_CommitCountBreakdown ¶
type GitRefUpdate_CommitCountBreakdown struct {
ByEmail []*GitRefUpdate_IndividualEmailCommitCount `json:"byEmail,omitempty" cborgen:"byEmail,omitempty"`
}
GitRefUpdate_CommitCountBreakdown is a "commitCountBreakdown" in the sh.tangled.git.refUpdate schema.
func (*GitRefUpdate_CommitCountBreakdown) MarshalCBOR ¶
func (t *GitRefUpdate_CommitCountBreakdown) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate_CommitCountBreakdown) UnmarshalCBOR ¶
func (t *GitRefUpdate_CommitCountBreakdown) UnmarshalCBOR(r io.Reader) (err error)
type GitRefUpdate_IndividualEmailCommitCount ¶
type GitRefUpdate_IndividualEmailCommitCount struct {
Count int64 `json:"count" cborgen:"count"`
Email string `json:"email" cborgen:"email"`
}
GitRefUpdate_IndividualEmailCommitCount is a "individualEmailCommitCount" in the sh.tangled.git.refUpdate schema.
func (*GitRefUpdate_IndividualEmailCommitCount) MarshalCBOR ¶
func (t *GitRefUpdate_IndividualEmailCommitCount) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate_IndividualEmailCommitCount) UnmarshalCBOR ¶
func (t *GitRefUpdate_IndividualEmailCommitCount) UnmarshalCBOR(r io.Reader) (err error)
type GitRefUpdate_IndividualLanguageSize ¶
type GitRefUpdate_IndividualLanguageSize struct {
Lang string `json:"lang" cborgen:"lang"`
Size int64 `json:"size" cborgen:"size"`
}
GitRefUpdate_IndividualLanguageSize is a "individualLanguageSize" in the sh.tangled.git.refUpdate schema.
func (*GitRefUpdate_IndividualLanguageSize) MarshalCBOR ¶
func (t *GitRefUpdate_IndividualLanguageSize) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate_IndividualLanguageSize) UnmarshalCBOR ¶
func (t *GitRefUpdate_IndividualLanguageSize) UnmarshalCBOR(r io.Reader) (err error)
type GitRefUpdate_LangBreakdown ¶
type GitRefUpdate_LangBreakdown struct {
Inputs []*GitRefUpdate_IndividualLanguageSize `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
}
GitRefUpdate_LangBreakdown is a "langBreakdown" in the sh.tangled.git.refUpdate schema.
func (*GitRefUpdate_LangBreakdown) MarshalCBOR ¶
func (t *GitRefUpdate_LangBreakdown) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate_LangBreakdown) UnmarshalCBOR ¶
func (t *GitRefUpdate_LangBreakdown) UnmarshalCBOR(r io.Reader) (err error)
type GitRefUpdate_Meta ¶
type GitRefUpdate_Meta struct {
CommitCount *GitRefUpdate_CommitCountBreakdown `json:"commitCount" cborgen:"commitCount"`
IsDefaultRef bool `json:"isDefaultRef" cborgen:"isDefaultRef"`
LangBreakdown *GitRefUpdate_LangBreakdown `json:"langBreakdown,omitempty" cborgen:"langBreakdown,omitempty"`
}
GitRefUpdate_Meta is a "meta" in the sh.tangled.git.refUpdate schema.
func (*GitRefUpdate_Meta) MarshalCBOR ¶
func (t *GitRefUpdate_Meta) MarshalCBOR(w io.Writer) error
func (*GitRefUpdate_Meta) UnmarshalCBOR ¶
func (t *GitRefUpdate_Meta) UnmarshalCBOR(r io.Reader) (err error)
type GitTempAnalyzeMerge_ConflictInfo ¶
type GitTempAnalyzeMerge_ConflictInfo struct {
// filename: Name of the conflicted file
Filename string `json:"filename" cborgen:"filename"`
// reason: Reason for the conflict
Reason string `json:"reason" cborgen:"reason"`
}
GitTempAnalyzeMerge_ConflictInfo is a "conflictInfo" in the sh.tangled.git.temp.analyzeMerge schema.
type GitTempAnalyzeMerge_Output ¶
type GitTempAnalyzeMerge_Output struct {
// conflicts: List of files with merge conflicts
Conflicts []*GitTempAnalyzeMerge_ConflictInfo `json:"conflicts,omitempty" cborgen:"conflicts,omitempty"`
// is_conflicted: Whether the merge has conflicts
Is_conflicted bool `json:"is_conflicted" cborgen:"is_conflicted"`
}
GitTempAnalyzeMerge_Output is the output of a sh.tangled.git.temp.analyzeMerge call.
func GitTempAnalyzeMerge ¶
func GitTempAnalyzeMerge(ctx context.Context, c util.LexClient, branch string, patch string, repo string) (*GitTempAnalyzeMerge_Output, error)
GitTempAnalyzeMerge calls the XRPC method "sh.tangled.git.temp.analyzeMerge".
branch: Target branch to merge into patch: Patch or pull request to check for merge conflicts repo: DID of the repository
type GitTempDefs_Branch ¶
type GitTempDefs_Branch struct {
// commit: hydrated commit object
Commit *GitTempDefs_Commit `json:"commit" cborgen:"commit"`
// name: branch name
Name string `json:"name" cborgen:"name"`
}
GitTempDefs_Branch is a "branch" in the sh.tangled.git.temp.defs schema.
type GitTempDefs_Commit ¶
type GitTempDefs_Commit struct {
Author *GitTempDefs_Signature `json:"author" cborgen:"author"`
Committer *GitTempDefs_Signature `json:"committer" cborgen:"committer"`
Hash *string `json:"hash" cborgen:"hash"`
Message string `json:"message" cborgen:"message"`
Tree *string `json:"tree" cborgen:"tree"`
}
GitTempDefs_Commit is a "commit" in the sh.tangled.git.temp.defs schema.
type GitTempDefs_Signature ¶
type GitTempDefs_Signature struct {
// email: Person email
Email string `json:"email" cborgen:"email"`
// name: Person name
Name string `json:"name" cborgen:"name"`
// when: Timestamp of the signature
When string `json:"when" cborgen:"when"`
}
GitTempDefs_Signature is a "signature" in the sh.tangled.git.temp.defs schema.
type GitTempDefs_Submodule ¶
type GitTempDefs_Submodule struct {
// branch: Branch to track in the submodule
Branch *string `json:"branch,omitempty" cborgen:"branch,omitempty"`
// name: Submodule name
Name string `json:"name" cborgen:"name"`
// url: Submodule repository URL
Url string `json:"url" cborgen:"url"`
}
GitTempDefs_Submodule is a "submodule" in the sh.tangled.git.temp.defs schema.
type GitTempDefs_Tag ¶
type GitTempDefs_Tag struct {
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
// name: tag name
Name string `json:"name" cborgen:"name"`
Tagger *GitTempDefs_Signature `json:"tagger" cborgen:"tagger"`
Target *util.LexiconTypeDecoder `json:"target" cborgen:"target"`
}
GitTempDefs_Tag is a "tag" in the sh.tangled.git.temp.defs schema.
type GitTempGetBranch_Output ¶
type GitTempGetBranch_Output struct {
Author *GitTempDefs_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Latest commit hash on this branch
Hash string `json:"hash" cborgen:"hash"`
// message: Latest commit message
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
// name: Branch name
Name string `json:"name" cborgen:"name"`
// when: Timestamp of latest commit
When string `json:"when" cborgen:"when"`
}
GitTempGetBranch_Output is the output of a sh.tangled.git.temp.getBranch call.
type GitTempGetEntry_Output ¶
type GitTempGetEntry_Output struct {
LastCommit *GitTempDefs_Commit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
Mode string `json:"mode" cborgen:"mode"`
// name: The file name
Name string `json:"name" cborgen:"name"`
Oid string `json:"oid" cborgen:"oid"`
// size: Blob size
Size int64 `json:"size" cborgen:"size"`
// submodule: Submodule information if path is a submodule
Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"`
}
GitTempGetEntry_Output is the output of a sh.tangled.git.temp.getEntry call.
func GitTempGetEntry ¶
func GitTempGetEntry(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempGetEntry_Output, error)
GitTempGetEntry calls the XRPC method "sh.tangled.git.temp.getEntry".
path: path of the entity ref: Git revision (branch, tag, or commit id) repo: DID of the repository
type GitTempGetTree_LastCommit ¶
type GitTempGetTree_LastCommit struct {
Author *GitTempGetTree_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Commit hash
Hash string `json:"hash" cborgen:"hash"`
// message: Commit message
Message string `json:"message" cborgen:"message"`
// when: Commit timestamp
When string `json:"when" cborgen:"when"`
}
GitTempGetTree_LastCommit is a "lastCommit" in the sh.tangled.git.temp.getTree schema.
type GitTempGetTree_Output ¶
type GitTempGetTree_Output struct {
// dotdot: Parent directory path
Dotdot *string `json:"dotdot,omitempty" cborgen:"dotdot,omitempty"`
Files []*GitTempGetTree_TreeEntry `json:"files" cborgen:"files"`
LastCommit *GitTempGetTree_LastCommit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
// parent: The parent path in the tree
Parent *string `json:"parent,omitempty" cborgen:"parent,omitempty"`
// readme: Readme for this file tree
Readme *GitTempGetTree_Readme `json:"readme,omitempty" cborgen:"readme,omitempty"`
// ref: The git reference used
Ref string `json:"ref" cborgen:"ref"`
}
GitTempGetTree_Output is the output of a sh.tangled.git.temp.getTree call.
func GitTempGetTree ¶
func GitTempGetTree(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempGetTree_Output, error)
GitTempGetTree calls the XRPC method "sh.tangled.git.temp.getTree".
path: Path within the repository tree ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
type GitTempGetTree_Readme ¶
type GitTempGetTree_Readme struct {
// contents: Contents of the readme file
Contents string `json:"contents" cborgen:"contents"`
// filename: Name of the readme file
Filename string `json:"filename" cborgen:"filename"`
}
GitTempGetTree_Readme is a "readme" in the sh.tangled.git.temp.getTree schema.
type GitTempGetTree_Signature ¶
type GitTempGetTree_Signature struct {
// email: Author email
Email string `json:"email" cborgen:"email"`
// name: Author name
Name string `json:"name" cborgen:"name"`
// when: Author timestamp
When string `json:"when" cborgen:"when"`
}
GitTempGetTree_Signature is a "signature" in the sh.tangled.git.temp.getTree schema.
type GitTempGetTree_TreeEntry ¶
type GitTempGetTree_TreeEntry struct {
Last_commit *GitTempGetTree_LastCommit `json:"last_commit,omitempty" cborgen:"last_commit,omitempty"`
// mode: File mode
Mode string `json:"mode" cborgen:"mode"`
// name: Relative file or directory name
Name string `json:"name" cborgen:"name"`
// size: File size in bytes
Size int64 `json:"size" cborgen:"size"`
}
GitTempGetTree_TreeEntry is a "treeEntry" in the sh.tangled.git.temp.getTree schema.
type GitTempListLanguages_Language ¶
type GitTempListLanguages_Language struct {
// name: Programming language name
Name string `json:"name" cborgen:"name"`
// size: Total size of files in this language (bytes)
Size int64 `json:"size" cborgen:"size"`
}
GitTempListLanguages_Language is a "language" in the sh.tangled.git.temp.listLanguages schema.
type GitTempListLanguages_Output ¶
type GitTempListLanguages_Output struct {
Languages []*GitTempListLanguages_Language `json:"languages" cborgen:"languages"`
// ref: The git reference used
Ref string `json:"ref" cborgen:"ref"`
// total: Total size of all analyzed files in bytes
Total int64 `json:"total" cborgen:"total"`
}
GitTempListLanguages_Output is the output of a sh.tangled.git.temp.listLanguages call.
func GitTempListLanguages ¶
func GitTempListLanguages(ctx context.Context, c util.LexClient, ref string, repo string) (*GitTempListLanguages_Output, error)
GitTempListLanguages calls the XRPC method "sh.tangled.git.temp.listLanguages".
ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
type GraphFollow ¶
type GraphFollow struct {
LexiconTypeID string `json:"$type,const=sh.tangled.graph.follow" cborgen:"$type,const=sh.tangled.graph.follow"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: GraphFollow
func (*GraphFollow) MarshalCBOR ¶
func (t *GraphFollow) MarshalCBOR(w io.Writer) error
func (*GraphFollow) UnmarshalCBOR ¶
func (t *GraphFollow) UnmarshalCBOR(r io.Reader) (err error)
type GraphVouch ¶
type GraphVouch struct {
LexiconTypeID string `json:"$type,const=sh.tangled.graph.vouch" cborgen:"$type,const=sh.tangled.graph.vouch"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// evidences: Optional list of ATURIs serving as evidence for this vouch (ex. issues, PRs)
Evidences []string `json:"evidences,omitempty" cborgen:"evidences,omitempty"`
// kind: Whether this user is being vouched for or denounced
Kind string `json:"kind" cborgen:"kind"`
// reason: The reason for this vouch/denouncement
Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"`
}
RECORDTYPE: GraphVouch
func (*GraphVouch) MarshalCBOR ¶
func (t *GraphVouch) MarshalCBOR(w io.Writer) error
func (*GraphVouch) UnmarshalCBOR ¶
func (t *GraphVouch) UnmarshalCBOR(r io.Reader) (err error)
type Knot ¶
type Knot struct {
LexiconTypeID string `json:"$type,const=sh.tangled.knot" cborgen:"$type,const=sh.tangled.knot"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
}
RECORDTYPE: Knot
type KnotAddMember_Input ¶
type KnotAddMember_Input struct {
// subject: DID of the member to add
Subject string `json:"subject" cborgen:"subject"`
}
KnotAddMember_Input is the input argument to a sh.tangled.knot.addMember call.
type KnotListKeys_Output ¶
type KnotListKeys_Output struct {
// cursor: Pagination cursor for next page
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Keys []*KnotListKeys_PublicKey `json:"keys" cborgen:"keys"`
}
KnotListKeys_Output is the output of a sh.tangled.knot.listKeys call.
type KnotListKeys_PublicKey ¶
type KnotListKeys_PublicKey struct {
// createdAt: Key upload timestamp
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// did: DID associated with the public key
Did string `json:"did" cborgen:"did"`
// key: Public key contents
Key string `json:"key" cborgen:"key"`
}
KnotListKeys_PublicKey is a "publicKey" in the sh.tangled.knot.listKeys schema.
type KnotListMembersBy_Output ¶
type KnotListMembersBy_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Items []*KnotListMembers_ListItem `json:"items" cborgen:"items"`
}
KnotListMembersBy_Output is the output of a sh.tangled.knot.listMembersBy call.
func KnotListMembersBy ¶
func KnotListMembersBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMembersBy_Output, error)
KnotListMembersBy calls the XRPC method "sh.tangled.knot.listMembersBy".
cursor: Pagination cursor order: Sort direction by createdAt. subject: Actor DID whose knot-member authorings to list.
type KnotListMembers_ListItem ¶
type KnotListMembers_ListItem struct {
// addedBy: DID that added this member
AddedBy string `json:"addedBy" cborgen:"addedBy"`
// cid: Optional record CID for record-backed indexers
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
// createdAt: When the member was added
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// subject: DID of the member
Subject string `json:"subject" cborgen:"subject"`
// uri: Optional record AT-URI for record-backed indexers
Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"`
}
KnotListMembers_ListItem is a "listItem" in the sh.tangled.knot.listMembers schema.
type KnotListMembers_Output ¶
type KnotListMembers_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Items []*KnotListMembers_ListItem `json:"items" cborgen:"items"`
}
KnotListMembers_Output is the output of a sh.tangled.knot.listMembers call.
func KnotListMembers ¶
func KnotListMembers(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMembers_Output, error)
KnotListMembers calls the XRPC method "sh.tangled.knot.listMembers".
cursor: Pagination cursor order: Sort direction by createdAt. subject: Knot identifier whose member records to list.
type KnotMember ¶
type KnotMember struct {
LexiconTypeID string `json:"$type,const=sh.tangled.knot.member" cborgen:"$type,const=sh.tangled.knot.member"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// domain: domain that this member now belongs to
Domain string `json:"domain" cborgen:"domain"`
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: KnotMember
func (*KnotMember) MarshalCBOR ¶
func (t *KnotMember) MarshalCBOR(w io.Writer) error
func (*KnotMember) UnmarshalCBOR ¶
func (t *KnotMember) UnmarshalCBOR(r io.Reader) (err error)
type KnotRemoveMember_Input ¶
type KnotRemoveMember_Input struct {
// subject: DID of the member to remove
Subject string `json:"subject" cborgen:"subject"`
}
KnotRemoveMember_Input is the input argument to a sh.tangled.knot.removeMember call.
type KnotSubscribeRepos_GitSync1 ¶
type KnotSubscribeRepos_GitSync1 struct {
// did: Repository DID identifier
Did string `json:"did" cborgen:"did"`
// seq: The stream sequence number of this message.
Seq int64 `json:"seq" cborgen:"seq"`
}
KnotSubscribeRepos_GitSync1 is a "gitSync1" in the sh.tangled.knot.subscribeRepos schema.
type KnotSubscribeRepos_GitSync2 ¶
type KnotSubscribeRepos_GitSync2 struct {
// repo: Repository AT-URI identifier
Repo string `json:"repo" cborgen:"repo"`
// seq: The stream sequence number of this message.
Seq int64 `json:"seq" cborgen:"seq"`
}
KnotSubscribeRepos_GitSync2 is a "gitSync2" in the sh.tangled.knot.subscribeRepos schema.
type KnotSubscribeRepos_Identity ¶
type KnotSubscribeRepos_Identity struct {
// did: Repository DID identifier
Did string `json:"did" cborgen:"did"`
// seq: The stream sequence number of this message.
Seq int64 `json:"seq" cborgen:"seq"`
Time string `json:"time" cborgen:"time"`
}
KnotSubscribeRepos_Identity is a "identity" in the sh.tangled.knot.subscribeRepos schema.
type KnotVersion_Output ¶
type KnotVersion_Output struct {
// capabilities: Protocol capability tokens this knot implements, such as knot-acl. Knots that omit this field are treated as legacy.
Capabilities []string `json:"capabilities,omitempty" cborgen:"capabilities,omitempty"`
Version string `json:"version" cborgen:"version"`
}
KnotVersion_Output is the output of a sh.tangled.knot.version call.
type LabelDefinition ¶
type LabelDefinition struct {
LexiconTypeID string `json:"$type,const=sh.tangled.label.definition" cborgen:"$type,const=sh.tangled.label.definition"`
// color: The hex value for the background color for the label. Appviews may choose to respect this.
Color *string `json:"color,omitempty" cborgen:"color,omitempty"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// multiple: Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]
Multiple *bool `json:"multiple,omitempty" cborgen:"multiple,omitempty"`
// name: The display name of this label.
Name string `json:"name" cborgen:"name"`
// scope: The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.
Scope []string `json:"scope" cborgen:"scope"`
// valueType: The type definition of this label. Appviews may allow sorting for certain types.
ValueType *LabelDefinition_ValueType `json:"valueType" cborgen:"valueType"`
}
RECORDTYPE: LabelDefinition
func (*LabelDefinition) MarshalCBOR ¶
func (t *LabelDefinition) MarshalCBOR(w io.Writer) error
func (*LabelDefinition) UnmarshalCBOR ¶
func (t *LabelDefinition) UnmarshalCBOR(r io.Reader) (err error)
type LabelDefinition_ValueType ¶
type LabelDefinition_ValueType struct {
// enum: Closed set of values that this label can take.
Enum []string `json:"enum,omitempty" cborgen:"enum,omitempty"`
// format: An optional constraint that can be applied on string concrete types.
Format string `json:"format" cborgen:"format"`
// type: The concrete type of this label's value.
Type string `json:"type" cborgen:"type"`
}
LabelDefinition_ValueType is a "valueType" in the sh.tangled.label.definition schema.
func (*LabelDefinition_ValueType) MarshalCBOR ¶
func (t *LabelDefinition_ValueType) MarshalCBOR(w io.Writer) error
func (*LabelDefinition_ValueType) UnmarshalCBOR ¶
func (t *LabelDefinition_ValueType) UnmarshalCBOR(r io.Reader) (err error)
type LabelOp ¶
type LabelOp struct {
LexiconTypeID string `json:"$type,const=sh.tangled.label.op" cborgen:"$type,const=sh.tangled.label.op"`
Add []*LabelOp_Operand `json:"add" cborgen:"add"`
Delete []*LabelOp_Operand `json:"delete" cborgen:"delete"`
PerformedAt string `json:"performedAt" cborgen:"performedAt"`
// subject: The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op.
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: LabelOp
type LabelOp_Operand ¶
type LabelOp_Operand struct {
// key: ATURI to the label definition
Key string `json:"key" cborgen:"key"`
// value: Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value.
Value string `json:"value" cborgen:"value"`
}
LabelOp_Operand is a "operand" in the sh.tangled.label.op schema.
func (*LabelOp_Operand) MarshalCBOR ¶
func (t *LabelOp_Operand) MarshalCBOR(w io.Writer) error
func (*LabelOp_Operand) UnmarshalCBOR ¶
func (t *LabelOp_Operand) UnmarshalCBOR(r io.Reader) (err error)
type MarkupMarkdown ¶
type MarkupMarkdown struct {
LexiconTypeID string `json:"$type,const=sh.tangled.markup.markdown" cborgen:"$type,const=sh.tangled.markup.markdown"`
// blobs: list of blobs referenced in markdown
Blobs []*util.LexBlob `json:"blobs,omitempty" cborgen:"blobs,omitempty"`
// original: Original Markdown before post-processing. Used to restore original input on edit.
Original *string `json:"original,omitempty" cborgen:"original,omitempty"`
// text: Final post-processed markdown content that will be rendered
Text string `json:"text" cborgen:"text"`
}
Tangled Flavored Markdown format text
RECORDTYPE: MarkupMarkdown
func (*MarkupMarkdown) MarshalCBOR ¶
func (t *MarkupMarkdown) MarshalCBOR(w io.Writer) error
func (*MarkupMarkdown) UnmarshalCBOR ¶
func (t *MarkupMarkdown) UnmarshalCBOR(r io.Reader) (err error)
type Owner_Output ¶
type Owner_Output struct {
Owner string `json:"owner" cborgen:"owner"`
}
Owner_Output is the output of a sh.tangled.owner call.
type Pipeline ¶
type Pipeline struct {
LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"`
TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"`
Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"`
}
DEPRECATED: use sh.tangled.ci.pipeline instead
RECORDTYPE: Pipeline
type PipelineCancelPipeline_Input ¶
type PipelineCancelPipeline_Input struct {
// pipeline: pipeline at-uri
Pipeline string `json:"pipeline" cborgen:"pipeline"`
// repo: repo at-uri, spindle can't resolve repo from pipeline at-uri yet
Repo string `json:"repo" cborgen:"repo"`
// workflow: workflow name
Workflow string `json:"workflow" cborgen:"workflow"`
}
PipelineCancelPipeline_Input is the input argument to a sh.tangled.pipeline.cancelPipeline call.
type PipelineStatus ¶
type PipelineStatus struct {
LexiconTypeID string `json:"$type,const=sh.tangled.pipeline.status" cborgen:"$type,const=sh.tangled.pipeline.status"`
// createdAt: time of creation of this status update
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// error: error message if failed
Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
// exitCode: exit code if failed
ExitCode *int64 `json:"exitCode,omitempty" cborgen:"exitCode,omitempty"`
// pipeline: ATURI of the pipeline
Pipeline string `json:"pipeline" cborgen:"pipeline"`
// status: status of the workflow
Status string `json:"status" cborgen:"status"`
// workflow: name of the workflow within this pipeline
Workflow string `json:"workflow" cborgen:"workflow"`
}
DEPRECATED: use sh.tangled.ci.pipeline instead
RECORDTYPE: PipelineStatus
func (*PipelineStatus) MarshalCBOR ¶
func (t *PipelineStatus) MarshalCBOR(w io.Writer) error
func (*PipelineStatus) UnmarshalCBOR ¶
func (t *PipelineStatus) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_CloneOpts ¶
type Pipeline_CloneOpts struct {
Depth int64 `json:"depth" cborgen:"depth"`
Skip bool `json:"skip" cborgen:"skip"`
Submodules bool `json:"submodules" cborgen:"submodules"`
Tags bool `json:"tags" cborgen:"tags"`
}
Pipeline_CloneOpts is a "cloneOpts" in the sh.tangled.pipeline schema.
func (*Pipeline_CloneOpts) MarshalCBOR ¶
func (t *Pipeline_CloneOpts) MarshalCBOR(w io.Writer) error
func (*Pipeline_CloneOpts) UnmarshalCBOR ¶
func (t *Pipeline_CloneOpts) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_ManualTriggerData ¶
type Pipeline_ManualTriggerData struct {
Inputs []*Pipeline_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
// ref: optional ref the SHA was resolved from, for display and TANGLED_REF
Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
// sha: commit SHA the manual run targets
Sha string `json:"sha" cborgen:"sha"`
}
Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema.
func (*Pipeline_ManualTriggerData) MarshalCBOR ¶
func (t *Pipeline_ManualTriggerData) MarshalCBOR(w io.Writer) error
func (*Pipeline_ManualTriggerData) UnmarshalCBOR ¶
func (t *Pipeline_ManualTriggerData) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_Pair ¶
type Pipeline_Pair struct {
Key string `json:"key" cborgen:"key"`
Value string `json:"value" cborgen:"value"`
}
Pipeline_Pair is a "pair" in the sh.tangled.pipeline schema.
func (*Pipeline_Pair) MarshalCBOR ¶
func (t *Pipeline_Pair) MarshalCBOR(w io.Writer) error
func (*Pipeline_Pair) UnmarshalCBOR ¶
func (t *Pipeline_Pair) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_PullRequestTriggerData ¶
type Pipeline_PullRequestTriggerData struct {
// pull: AT-URI of the sh.tangled.repo.pull record this run belongs to
Pull *string `json:"pull,omitempty" cborgen:"pull,omitempty"`
SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"`
SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
}
Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema.
func (*Pipeline_PullRequestTriggerData) MarshalCBOR ¶
func (t *Pipeline_PullRequestTriggerData) MarshalCBOR(w io.Writer) error
func (*Pipeline_PullRequestTriggerData) UnmarshalCBOR ¶
func (t *Pipeline_PullRequestTriggerData) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_PushTriggerData ¶
type Pipeline_PushTriggerData struct {
NewSha string `json:"newSha" cborgen:"newSha"`
OldSha string `json:"oldSha" cborgen:"oldSha"`
Ref string `json:"ref" cborgen:"ref"`
}
Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema.
func (*Pipeline_PushTriggerData) MarshalCBOR ¶
func (t *Pipeline_PushTriggerData) MarshalCBOR(w io.Writer) error
func (*Pipeline_PushTriggerData) UnmarshalCBOR ¶
func (t *Pipeline_PushTriggerData) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_TriggerMetadata ¶
type Pipeline_TriggerMetadata struct {
Kind string `json:"kind" cborgen:"kind"`
Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"`
PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"`
Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"`
Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"`
// sourceRepo: Repository DID that code and workflow definitions are checked out from, when different from repo (e.g. a fork's commit for a fork-based manual trigger). If absent, source uses repo itself.
SourceRepo *string `json:"sourceRepo,omitempty" cborgen:"sourceRepo,omitempty"`
}
Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema.
func (*Pipeline_TriggerMetadata) MarshalCBOR ¶
func (t *Pipeline_TriggerMetadata) MarshalCBOR(w io.Writer) error
func (*Pipeline_TriggerMetadata) UnmarshalCBOR ¶
func (t *Pipeline_TriggerMetadata) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_TriggerRepo ¶
type Pipeline_TriggerRepo struct {
DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
Did string `json:"did" cborgen:"did"`
Knot string `json:"knot" cborgen:"knot"`
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
// repoDid: DID of the repo itself
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
}
Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
func (*Pipeline_TriggerRepo) MarshalCBOR ¶
func (t *Pipeline_TriggerRepo) MarshalCBOR(w io.Writer) error
func (*Pipeline_TriggerRepo) UnmarshalCBOR ¶
func (t *Pipeline_TriggerRepo) UnmarshalCBOR(r io.Reader) (err error)
type Pipeline_Workflow ¶
type Pipeline_Workflow struct {
Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"`
Engine string `json:"engine" cborgen:"engine"`
Name string `json:"name" cborgen:"name"`
Raw string `json:"raw" cborgen:"raw"`
}
Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
func (*Pipeline_Workflow) MarshalCBOR ¶
func (t *Pipeline_Workflow) MarshalCBOR(w io.Writer) error
func (*Pipeline_Workflow) UnmarshalCBOR ¶
func (t *Pipeline_Workflow) UnmarshalCBOR(r io.Reader) (err error)
type PublicKey ¶
type PublicKey struct {
LexiconTypeID string `json:"$type,const=sh.tangled.publicKey" cborgen:"$type,const=sh.tangled.publicKey"`
// createdAt: key upload timestamp
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// key: public key contents
Key string `json:"key" cborgen:"key"`
// name: human-readable name for this key
Name string `json:"name" cborgen:"name"`
}
RECORDTYPE: PublicKey
type Repo ¶
type Repo struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo" cborgen:"$type,const=sh.tangled.repo"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
// knot: knot where the repo was created
Knot string `json:"knot" cborgen:"knot"`
// labels: List of labels that this repo subscribes to
Labels []string `json:"labels,omitempty" cborgen:"labels,omitempty"`
// name: Cosmetic name of the repo.
Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
// repoDid: DID of the repo itself, if assigned
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
// source: source of the repo
Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
// spindle: CI runner to send jobs to and receive results from
Spindle *string `json:"spindle,omitempty" cborgen:"spindle,omitempty"`
// topics: Topics related to the repo
Topics []string `json:"topics,omitempty" cborgen:"topics,omitempty"`
// website: Any URI related to the repo
Website *string `json:"website,omitempty" cborgen:"website,omitempty"`
}
RECORDTYPE: Repo
type RepoAddCollaborator_Input ¶
type RepoAddCollaborator_Input struct {
// repo: DID of the repository to add the collaborator to
Repo string `json:"repo" cborgen:"repo"`
// subject: DID of the collaborator to add
Subject string `json:"subject" cborgen:"subject"`
}
RepoAddCollaborator_Input is the input argument to a sh.tangled.repo.addCollaborator call.
type RepoAddSecret_Input ¶
type RepoAddSecret_Input struct {
Key string `json:"key" cborgen:"key"`
Repo string `json:"repo" cborgen:"repo"`
Value string `json:"value" cborgen:"value"`
}
RepoAddSecret_Input is the input argument to a sh.tangled.repo.addSecret call.
type RepoArtifact ¶
type RepoArtifact struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.artifact" cborgen:"$type,const=sh.tangled.repo.artifact"`
// artifact: the artifact
Artifact *util.LexBlob `json:"artifact" cborgen:"artifact"`
// createdAt: time of creation of this artifact
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// name: name of the artifact
Name string `json:"name" cborgen:"name"`
// repo: repo that this artifact is being uploaded to
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
// tag: hash of the tag object that this artifact is attached to (only annotated tags are supported)
Tag util.LexBytes `json:"tag,omitempty" cborgen:"tag,omitempty"`
}
RECORDTYPE: RepoArtifact
func (*RepoArtifact) MarshalCBOR ¶
func (t *RepoArtifact) MarshalCBOR(w io.Writer) error
func (*RepoArtifact) UnmarshalCBOR ¶
func (t *RepoArtifact) UnmarshalCBOR(r io.Reader) (err error)
type RepoBlob_LastCommit ¶
type RepoBlob_LastCommit struct {
Author *RepoBlob_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Commit hash
Hash string `json:"hash" cborgen:"hash"`
// message: Commit message
Message string `json:"message" cborgen:"message"`
// when: Commit timestamp
When string `json:"when" cborgen:"when"`
}
RepoBlob_LastCommit is a "lastCommit" in the sh.tangled.repo.blob schema.
type RepoBlob_Output ¶
type RepoBlob_Output struct {
// content: File content (base64 encoded for binary files)
Content *string `json:"content,omitempty" cborgen:"content,omitempty"`
// encoding: Content encoding
Encoding *string `json:"encoding,omitempty" cborgen:"encoding,omitempty"`
FileTooLarge *bool `json:"fileTooLarge,omitempty" cborgen:"fileTooLarge,omitempty"`
// isBinary: Whether the file is binary
IsBinary *bool `json:"isBinary,omitempty" cborgen:"isBinary,omitempty"`
LastCommit *RepoBlob_LastCommit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
// mimeType: MIME type of the file
MimeType *string `json:"mimeType,omitempty" cborgen:"mimeType,omitempty"`
// path: The file path
Path string `json:"path" cborgen:"path"`
// ref: The git reference used
Ref string `json:"ref" cborgen:"ref"`
// size: File size in bytes
Size *int64 `json:"size,omitempty" cborgen:"size,omitempty"`
// submodule: Submodule information if path is a submodule
Submodule *RepoBlob_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"`
}
RepoBlob_Output is the output of a sh.tangled.repo.blob call.
func RepoBlob ¶
func RepoBlob(ctx context.Context, c util.LexClient, path string, raw bool, ref string, repo string) (*RepoBlob_Output, error)
RepoBlob calls the XRPC method "sh.tangled.repo.blob".
path: Path to the file within the repository raw: Return raw file content instead of JSON response ref: Git reference (branch, tag, or commit SHA) repo: DID of the repository
type RepoBlob_Signature ¶
type RepoBlob_Signature struct {
// email: Author email
Email string `json:"email" cborgen:"email"`
// name: Author name
Name string `json:"name" cborgen:"name"`
// when: Author timestamp
When string `json:"when" cborgen:"when"`
}
RepoBlob_Signature is a "signature" in the sh.tangled.repo.blob schema.
type RepoBlob_Submodule ¶
type RepoBlob_Submodule struct {
// branch: Branch to track in the submodule
Branch *string `json:"branch,omitempty" cborgen:"branch,omitempty"`
// name: Submodule name
Name string `json:"name" cborgen:"name"`
// url: Submodule repository URL
Url string `json:"url" cborgen:"url"`
}
RepoBlob_Submodule is a "submodule" in the sh.tangled.repo.blob schema.
type RepoBranch_Output ¶
type RepoBranch_Output struct {
Author *RepoBranch_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Latest commit hash on this branch
Hash string `json:"hash" cborgen:"hash"`
// isDefault: Whether this is the default branch
IsDefault *bool `json:"isDefault,omitempty" cborgen:"isDefault,omitempty"`
// message: Latest commit message
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
// name: Branch name
Name string `json:"name" cborgen:"name"`
// shortHash: Short commit hash
ShortHash *string `json:"shortHash,omitempty" cborgen:"shortHash,omitempty"`
// when: Timestamp of latest commit
When string `json:"when" cborgen:"when"`
}
RepoBranch_Output is the output of a sh.tangled.repo.branch call.
type RepoBranch_Signature ¶
type RepoBranch_Signature struct {
// email: Author email
Email string `json:"email" cborgen:"email"`
// name: Author name
Name string `json:"name" cborgen:"name"`
// when: Author timestamp
When string `json:"when" cborgen:"when"`
}
RepoBranch_Signature is a "signature" in the sh.tangled.repo.branch schema.
type RepoCollaborator ¶
type RepoCollaborator struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.collaborator" cborgen:"$type,const=sh.tangled.repo.collaborator"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// repo: repo DID to add this user to
Repo string `json:"repo" cborgen:"repo"`
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: RepoCollaborator
func (*RepoCollaborator) MarshalCBOR ¶
func (t *RepoCollaborator) MarshalCBOR(w io.Writer) error
func (*RepoCollaborator) UnmarshalCBOR ¶
func (t *RepoCollaborator) UnmarshalCBOR(r io.Reader) (err error)
type RepoCreate_Input ¶
type RepoCreate_Input struct {
// defaultBranch: Default branch to push to
DefaultBranch *string `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"`
// name: Name of the repository
Name string `json:"name" cborgen:"name"`
// repoDid: Optional user-provided did:web to use as the repo identity instead of minting a did:plc.
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
// rkey: Rkey of the repository record
Rkey string `json:"rkey" cborgen:"rkey"`
// source: A source URL to clone from, populate this when forking or importing a repository.
Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
}
RepoCreate_Input is the input argument to a sh.tangled.repo.create call.
type RepoCreate_Output ¶
type RepoCreate_Output struct {
RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
}
RepoCreate_Output is the output of a sh.tangled.repo.create call.
func RepoCreate ¶
func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) (*RepoCreate_Output, error)
RepoCreate calls the XRPC method "sh.tangled.repo.create".
type RepoDeleteBranch_Input ¶
type RepoDeleteBranch_Input struct {
Branch string `json:"branch" cborgen:"branch"`
Repo string `json:"repo" cborgen:"repo"`
}
RepoDeleteBranch_Input is the input argument to a sh.tangled.repo.deleteBranch call.
type RepoDelete_Input ¶
type RepoDelete_Input struct {
// did: DID of the repository owner
Did string `json:"did" cborgen:"did"`
// name: Name of the repository to delete
Name string `json:"name" cborgen:"name"`
// rkey: Rkey of the repository record
Rkey string `json:"rkey" cborgen:"rkey"`
}
RepoDelete_Input is the input argument to a sh.tangled.repo.delete call.
type RepoDescribeRepo_Output ¶
type RepoDescribeRepo_Output struct {
// ownerDid: DID of the current owner according to the knot.
OwnerDid string `json:"ownerDid" cborgen:"ownerDid"`
RepoDid string `json:"repoDid" cborgen:"repoDid"`
// rkey: Current rkey of the sh.tangled.repo record tracked by this knot
Rkey string `json:"rkey" cborgen:"rkey"`
}
RepoDescribeRepo_Output is the output of a sh.tangled.repo.describeRepo call.
type RepoForkStatus_Input ¶
type RepoForkStatus_Input struct {
// branch: Branch to check status for
Branch string `json:"branch" cborgen:"branch"`
// did: DID of the fork owner
Did string `json:"did" cborgen:"did"`
// hiddenRef: Hidden ref to use for comparison
HiddenRef string `json:"hiddenRef" cborgen:"hiddenRef"`
// name: Name of the forked repository
Name string `json:"name" cborgen:"name"`
// source: Source repository URL
Source string `json:"source" cborgen:"source"`
}
RepoForkStatus_Input is the input argument to a sh.tangled.repo.forkStatus call.
type RepoForkStatus_Output ¶
type RepoForkStatus_Output struct {
// status: Fork status: 0=UpToDate, 1=FastForwardable, 2=Conflict, 3=MissingBranch
Status int64 `json:"status" cborgen:"status"`
}
RepoForkStatus_Output is the output of a sh.tangled.repo.forkStatus call.
func RepoForkStatus ¶
func RepoForkStatus(ctx context.Context, c util.LexClient, input *RepoForkStatus_Input) (*RepoForkStatus_Output, error)
RepoForkStatus calls the XRPC method "sh.tangled.repo.forkStatus".
type RepoForkSync_Input ¶
type RepoForkSync_Input struct {
// branch: Branch to sync
Branch string `json:"branch" cborgen:"branch"`
// did: DID of the fork owner
Did string `json:"did" cborgen:"did"`
// name: Name of the forked repository
Name string `json:"name" cborgen:"name"`
// repo: DID of the repository
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
// source: AT-URI of the source repository
Source string `json:"source" cborgen:"source"`
}
RepoForkSync_Input is the input argument to a sh.tangled.repo.forkSync call.
type RepoGetDefaultBranch_Output ¶
type RepoGetDefaultBranch_Output struct {
Author *RepoGetDefaultBranch_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Latest commit hash on default branch
Hash string `json:"hash" cborgen:"hash"`
// message: Latest commit message
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
// name: Default branch name
Name string `json:"name" cborgen:"name"`
// shortHash: Short commit hash
ShortHash *string `json:"shortHash,omitempty" cborgen:"shortHash,omitempty"`
// when: Timestamp of latest commit
When string `json:"when" cborgen:"when"`
}
RepoGetDefaultBranch_Output is the output of a sh.tangled.repo.getDefaultBranch call.
type RepoGetDefaultBranch_Signature ¶
type RepoGetDefaultBranch_Signature struct {
// email: Author email
Email string `json:"email" cborgen:"email"`
// name: Author name
Name string `json:"name" cborgen:"name"`
// when: Author timestamp
When string `json:"when" cborgen:"when"`
}
RepoGetDefaultBranch_Signature is a "signature" in the sh.tangled.repo.getDefaultBranch schema.
type RepoHiddenRef_Input ¶
type RepoHiddenRef_Input struct {
// forkRef: Fork reference name
ForkRef string `json:"forkRef" cborgen:"forkRef"`
// remoteRef: Remote reference name
RemoteRef string `json:"remoteRef" cborgen:"remoteRef"`
// repo: AT-URI of the repository
Repo string `json:"repo" cborgen:"repo"`
}
RepoHiddenRef_Input is the input argument to a sh.tangled.repo.hiddenRef call.
type RepoHiddenRef_Output ¶
type RepoHiddenRef_Output struct {
// error: Error message if creation failed
Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
// ref: The created hidden ref name
Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
// success: Whether the hidden ref was created successfully
Success bool `json:"success" cborgen:"success"`
}
RepoHiddenRef_Output is the output of a sh.tangled.repo.hiddenRef call.
func RepoHiddenRef ¶
func RepoHiddenRef(ctx context.Context, c util.LexClient, input *RepoHiddenRef_Input) (*RepoHiddenRef_Output, error)
RepoHiddenRef calls the XRPC method "sh.tangled.repo.hiddenRef".
type RepoIssue ¶
type RepoIssue struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue" cborgen:"$type,const=sh.tangled.repo.issue"`
Body *string `json:"body,omitempty" cborgen:"body,omitempty"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
References []string `json:"references,omitempty" cborgen:"references,omitempty"`
Repo string `json:"repo" cborgen:"repo"`
Title string `json:"title" cborgen:"title"`
}
RECORDTYPE: RepoIssue
type RepoIssueComment ¶
type RepoIssueComment struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue.comment" cborgen:"$type,const=sh.tangled.repo.issue.comment"`
Body string `json:"body" cborgen:"body"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Issue string `json:"issue" cborgen:"issue"`
Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
References []string `json:"references,omitempty" cborgen:"references,omitempty"`
ReplyTo *string `json:"replyTo,omitempty" cborgen:"replyTo,omitempty"`
}
RECORDTYPE: RepoIssueComment
func (*RepoIssueComment) MarshalCBOR ¶
func (t *RepoIssueComment) MarshalCBOR(w io.Writer) error
func (*RepoIssueComment) UnmarshalCBOR ¶
func (t *RepoIssueComment) UnmarshalCBOR(r io.Reader) (err error)
type RepoIssueState ¶
type RepoIssueState struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue.state" cborgen:"$type,const=sh.tangled.repo.issue.state"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Issue string `json:"issue" cborgen:"issue"`
// state: state of the issue
State string `json:"state" cborgen:"state"`
}
RECORDTYPE: RepoIssueState
func (*RepoIssueState) MarshalCBOR ¶
func (t *RepoIssueState) MarshalCBOR(w io.Writer) error
func (*RepoIssueState) UnmarshalCBOR ¶
func (t *RepoIssueState) UnmarshalCBOR(r io.Reader) (err error)
type RepoLanguages_Language ¶
type RepoLanguages_Language struct {
// color: Hex color code for this language
Color *string `json:"color,omitempty" cborgen:"color,omitempty"`
// extensions: File extensions associated with this language
Extensions []string `json:"extensions,omitempty" cborgen:"extensions,omitempty"`
// fileCount: Number of files in this language
FileCount *int64 `json:"fileCount,omitempty" cborgen:"fileCount,omitempty"`
// name: Programming language name
Name string `json:"name" cborgen:"name"`
// percentage: Percentage of total codebase (0-100)
Percentage int64 `json:"percentage" cborgen:"percentage"`
// size: Total size of files in this language (bytes)
Size int64 `json:"size" cborgen:"size"`
}
RepoLanguages_Language is a "language" in the sh.tangled.repo.languages schema.
type RepoLanguages_Output ¶
type RepoLanguages_Output struct {
Languages []*RepoLanguages_Language `json:"languages" cborgen:"languages"`
// ref: The git reference used
Ref string `json:"ref" cborgen:"ref"`
// totalFiles: Total number of files analyzed
TotalFiles *int64 `json:"totalFiles,omitempty" cborgen:"totalFiles,omitempty"`
// totalSize: Total size of all analyzed files in bytes
TotalSize *int64 `json:"totalSize,omitempty" cborgen:"totalSize,omitempty"`
}
RepoLanguages_Output is the output of a sh.tangled.repo.languages call.
func RepoLanguages ¶
func RepoLanguages(ctx context.Context, c util.LexClient, ref string, repo string) (*RepoLanguages_Output, error)
RepoLanguages calls the XRPC method "sh.tangled.repo.languages".
ref: Git reference (branch, tag, or commit SHA) repo: Repository identifier in format 'did:plc:.../repoName'
type RepoListCollaboratorsBy_Output ¶
type RepoListCollaboratorsBy_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Items []*RepoListCollaborators_ListItem `json:"items" cborgen:"items"`
}
RepoListCollaboratorsBy_Output is the output of a sh.tangled.repo.listCollaboratorsBy call.
func RepoListCollaboratorsBy ¶
func RepoListCollaboratorsBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoListCollaboratorsBy_Output, error)
RepoListCollaboratorsBy calls the XRPC method "sh.tangled.repo.listCollaboratorsBy".
cursor: Pagination cursor order: Sort direction by createdAt. subject: Actor DID whose collaborator authorings to list.
type RepoListCollaborators_ListItem ¶
type RepoListCollaborators_ListItem struct {
// addedBy: DID that added this collaborator
AddedBy string `json:"addedBy" cborgen:"addedBy"`
// cid: Optional record CID for record-backed indexers
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
// createdAt: When the collaborator was added
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// subject: DID of the collaborator
Subject string `json:"subject" cborgen:"subject"`
// uri: Optional record AT-URI for record-backed indexers
Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"`
}
RepoListCollaborators_ListItem is a "listItem" in the sh.tangled.repo.listCollaborators schema.
type RepoListCollaborators_Output ¶
type RepoListCollaborators_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Items []*RepoListCollaborators_ListItem `json:"items" cborgen:"items"`
}
RepoListCollaborators_Output is the output of a sh.tangled.repo.listCollaborators call.
func RepoListCollaborators ¶
func RepoListCollaborators(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoListCollaborators_Output, error)
RepoListCollaborators calls the XRPC method "sh.tangled.repo.listCollaborators".
cursor: Pagination cursor order: Sort direction by createdAt. subject: Repo DID whose collaborator records to list.
type RepoListSecrets_Output ¶
type RepoListSecrets_Output struct {
Secrets []*RepoListSecrets_Secret `json:"secrets" cborgen:"secrets"`
}
RepoListSecrets_Output is the output of a sh.tangled.repo.listSecrets call.
type RepoListSecrets_Secret ¶
type RepoListSecrets_Secret struct {
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
CreatedBy string `json:"createdBy" cborgen:"createdBy"`
Key string `json:"key" cborgen:"key"`
Repo string `json:"repo" cborgen:"repo"`
}
RepoListSecrets_Secret is a "secret" in the sh.tangled.repo.listSecrets schema.
type RepoMergeCheck_ConflictInfo ¶
type RepoMergeCheck_ConflictInfo struct {
// filename: Name of the conflicted file
Filename string `json:"filename" cborgen:"filename"`
// reason: Reason for the conflict
Reason string `json:"reason" cborgen:"reason"`
}
RepoMergeCheck_ConflictInfo is a "conflictInfo" in the sh.tangled.repo.mergeCheck schema.
type RepoMergeCheck_Input ¶
type RepoMergeCheck_Input struct {
// branch: Target branch to merge into
Branch string `json:"branch" cborgen:"branch"`
// did: DID of the repository owner
Did string `json:"did" cborgen:"did"`
// name: Name of the repository
Name string `json:"name" cborgen:"name"`
// patch: Patch or pull request to check for merge conflicts
Patch string `json:"patch" cborgen:"patch"`
// repo: DID of the repository
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
}
RepoMergeCheck_Input is the input argument to a sh.tangled.repo.mergeCheck call.
type RepoMergeCheck_Output ¶
type RepoMergeCheck_Output struct {
// conflicts: List of files with merge conflicts
Conflicts []*RepoMergeCheck_ConflictInfo `json:"conflicts,omitempty" cborgen:"conflicts,omitempty"`
// error: Error message if check failed
Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
// is_conflicted: Whether the merge has conflicts
Is_conflicted bool `json:"is_conflicted" cborgen:"is_conflicted"`
// message: Additional message about the merge check
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
}
RepoMergeCheck_Output is the output of a sh.tangled.repo.mergeCheck call.
func RepoMergeCheck ¶
func RepoMergeCheck(ctx context.Context, c util.LexClient, input *RepoMergeCheck_Input) (*RepoMergeCheck_Output, error)
RepoMergeCheck calls the XRPC method "sh.tangled.repo.mergeCheck".
type RepoMerge_Input ¶
type RepoMerge_Input struct {
// authorEmail: Author email for the merge commit
AuthorEmail *string `json:"authorEmail,omitempty" cborgen:"authorEmail,omitempty"`
// authorName: Author name for the merge commit
AuthorName *string `json:"authorName,omitempty" cborgen:"authorName,omitempty"`
// branch: Target branch to merge into
Branch string `json:"branch" cborgen:"branch"`
// commitBody: Additional commit message body
CommitBody *string `json:"commitBody,omitempty" cborgen:"commitBody,omitempty"`
// commitMessage: Merge commit message
CommitMessage *string `json:"commitMessage,omitempty" cborgen:"commitMessage,omitempty"`
// did: DID of the repository owner
Did string `json:"did" cborgen:"did"`
// name: Name of the repository
Name string `json:"name" cborgen:"name"`
// patch: Patch content to merge
Patch string `json:"patch" cborgen:"patch"`
// repo: DID of the repository
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
}
RepoMerge_Input is the input argument to a sh.tangled.repo.merge call.
type RepoPull ¶
type RepoPull struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull" cborgen:"$type,const=sh.tangled.repo.pull"`
Body *string `json:"body,omitempty" cborgen:"body,omitempty"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
DependentOn *string `json:"dependentOn,omitempty" cborgen:"dependentOn,omitempty"`
Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
References []string `json:"references,omitempty" cborgen:"references,omitempty"`
Rounds []*RepoPull_Round `json:"rounds" cborgen:"rounds"`
Source *RepoPull_Source `json:"source,omitempty" cborgen:"source,omitempty"`
Target *RepoPull_Target `json:"target" cborgen:"target"`
Title string `json:"title" cborgen:"title"`
}
RECORDTYPE: RepoPull
type RepoPullComment ¶
type RepoPullComment struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull.comment" cborgen:"$type,const=sh.tangled.repo.pull.comment"`
Body string `json:"body" cborgen:"body"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
Pull string `json:"pull" cborgen:"pull"`
References []string `json:"references,omitempty" cborgen:"references,omitempty"`
}
RECORDTYPE: RepoPullComment
func (*RepoPullComment) MarshalCBOR ¶
func (t *RepoPullComment) MarshalCBOR(w io.Writer) error
func (*RepoPullComment) UnmarshalCBOR ¶
func (t *RepoPullComment) UnmarshalCBOR(r io.Reader) (err error)
type RepoPullStatus ¶
type RepoPullStatus struct {
LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull.status" cborgen:"$type,const=sh.tangled.repo.pull.status"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Pull string `json:"pull" cborgen:"pull"`
// status: status of the pull request
Status string `json:"status" cborgen:"status"`
}
RECORDTYPE: RepoPullStatus
func (*RepoPullStatus) MarshalCBOR ¶
func (t *RepoPullStatus) MarshalCBOR(w io.Writer) error
func (*RepoPullStatus) UnmarshalCBOR ¶
func (t *RepoPullStatus) UnmarshalCBOR(r io.Reader) (err error)
type RepoPull_Round ¶
type RepoPull_Round struct {
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
PatchBlob *util.LexBlob `json:"patchBlob" cborgen:"patchBlob"`
}
RepoPull_Round is a "round" in the sh.tangled.repo.pull schema.
revisions of this pull request, newer rounds are appended to this array. appviews may reject records do not treat this field as append-only. the blob format is gzipped text-based git-format-patches.
func (*RepoPull_Round) MarshalCBOR ¶
func (t *RepoPull_Round) MarshalCBOR(w io.Writer) error
func (*RepoPull_Round) UnmarshalCBOR ¶
func (t *RepoPull_Round) UnmarshalCBOR(r io.Reader) (err error)
type RepoPull_Source ¶
type RepoPull_Source struct {
Branch string `json:"branch" cborgen:"branch"`
Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
}
RepoPull_Source is a "source" in the sh.tangled.repo.pull schema.
func (*RepoPull_Source) MarshalCBOR ¶
func (t *RepoPull_Source) MarshalCBOR(w io.Writer) error
func (*RepoPull_Source) UnmarshalCBOR ¶
func (t *RepoPull_Source) UnmarshalCBOR(r io.Reader) (err error)
type RepoPull_Target ¶
type RepoPull_Target struct {
Branch string `json:"branch" cborgen:"branch"`
Repo string `json:"repo" cborgen:"repo"`
}
RepoPull_Target is a "target" in the sh.tangled.repo.pull schema.
func (*RepoPull_Target) MarshalCBOR ¶
func (t *RepoPull_Target) MarshalCBOR(w io.Writer) error
func (*RepoPull_Target) UnmarshalCBOR ¶
func (t *RepoPull_Target) UnmarshalCBOR(r io.Reader) (err error)
type RepoRemoveCollaborator_Input ¶
type RepoRemoveCollaborator_Input struct {
// repo: DID of the repository to remove the collaborator from
Repo string `json:"repo" cborgen:"repo"`
// subject: DID of the collaborator to remove
Subject string `json:"subject" cborgen:"subject"`
}
RepoRemoveCollaborator_Input is the input argument to a sh.tangled.repo.removeCollaborator call.
type RepoRemoveSecret_Input ¶
type RepoRemoveSecret_Input struct {
Key string `json:"key" cborgen:"key"`
Repo string `json:"repo" cborgen:"repo"`
}
RepoRemoveSecret_Input is the input argument to a sh.tangled.repo.removeSecret call.
type RepoSetDefaultBranch_Input ¶
type RepoSetDefaultBranch_Input struct {
DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
Repo string `json:"repo" cborgen:"repo"`
}
RepoSetDefaultBranch_Input is the input argument to a sh.tangled.repo.setDefaultBranch call.
type RepoTree_LastCommit ¶
type RepoTree_LastCommit struct {
Author *RepoTree_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
// hash: Commit hash
Hash string `json:"hash" cborgen:"hash"`
// message: Commit message
Message string `json:"message" cborgen:"message"`
// when: Commit timestamp
When string `json:"when" cborgen:"when"`
}
RepoTree_LastCommit is a "lastCommit" in the sh.tangled.repo.tree schema.
type RepoTree_Output ¶
type RepoTree_Output struct {
// dotdot: Parent directory path
Dotdot *string `json:"dotdot,omitempty" cborgen:"dotdot,omitempty"`
Files []*RepoTree_TreeEntry `json:"files" cborgen:"files"`
LastCommit *RepoTree_LastCommit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
// parent: The parent path in the tree
Parent *string `json:"parent,omitempty" cborgen:"parent,omitempty"`
// readme: Readme for this file tree
Readme *RepoTree_Readme `json:"readme,omitempty" cborgen:"readme,omitempty"`
// ref: The git reference used
Ref string `json:"ref" cborgen:"ref"`
}
RepoTree_Output is the output of a sh.tangled.repo.tree call.
func RepoTree ¶
func RepoTree(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*RepoTree_Output, error)
RepoTree calls the XRPC method "sh.tangled.repo.tree".
path: Path within the repository tree ref: Git reference (branch, tag, or commit SHA) repo: Repository identifier in format 'did:plc:.../repoName'
type RepoTree_Readme ¶
type RepoTree_Readme struct {
// contents: Contents of the readme file
Contents string `json:"contents" cborgen:"contents"`
// filename: Name of the readme file
Filename string `json:"filename" cborgen:"filename"`
}
RepoTree_Readme is a "readme" in the sh.tangled.repo.tree schema.
type RepoTree_Signature ¶
type RepoTree_Signature struct {
// email: Author email
Email string `json:"email" cborgen:"email"`
// name: Author name
Name string `json:"name" cborgen:"name"`
// when: Author timestamp
When string `json:"when" cborgen:"when"`
}
RepoTree_Signature is a "signature" in the sh.tangled.repo.tree schema.
type RepoTree_TreeEntry ¶
type RepoTree_TreeEntry struct {
Last_commit *RepoTree_LastCommit `json:"last_commit,omitempty" cborgen:"last_commit,omitempty"`
// mode: File mode
Mode string `json:"mode" cborgen:"mode"`
// name: Relative file or directory name
Name string `json:"name" cborgen:"name"`
// size: File size in bytes
Size int64 `json:"size" cborgen:"size"`
}
RepoTree_TreeEntry is a "treeEntry" in the sh.tangled.repo.tree schema.
type Spindle ¶
type Spindle struct {
LexiconTypeID string `json:"$type,const=sh.tangled.spindle" cborgen:"$type,const=sh.tangled.spindle"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
}
RECORDTYPE: Spindle
type SpindleMember ¶
type SpindleMember struct {
LexiconTypeID string `json:"$type,const=sh.tangled.spindle.member" cborgen:"$type,const=sh.tangled.spindle.member"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
// instance: spindle instance that the subject is now a member of
Instance string `json:"instance" cborgen:"instance"`
Subject string `json:"subject" cborgen:"subject"`
}
RECORDTYPE: SpindleMember
func (*SpindleMember) MarshalCBOR ¶
func (t *SpindleMember) MarshalCBOR(w io.Writer) error
func (*SpindleMember) UnmarshalCBOR ¶
func (t *SpindleMember) UnmarshalCBOR(r io.Reader) (err error)
type String ¶
type String struct {
LexiconTypeID string `json:"$type,const=sh.tangled.string" cborgen:"$type,const=sh.tangled.string"`
Contents string `json:"contents" cborgen:"contents"`
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Description string `json:"description" cborgen:"description"`
Filename string `json:"filename" cborgen:"filename"`
}
RECORDTYPE: String
type SyncListRepos_DefaultBranch ¶
type SyncListRepos_DefaultBranch struct {
// head: Commit SHA at the tip of the default branch, for reconciling against a last-known state. Width depends on the repo's git object-format.
Head *string `json:"head,omitempty" cborgen:"head,omitempty"`
// ref: Default branch ref name, eg. refs/heads/main.
Ref string `json:"ref" cborgen:"ref"`
}
SyncListRepos_DefaultBranch is a "defaultBranch" in the sh.tangled.sync.listRepos schema.
type SyncListRepos_Output ¶
type SyncListRepos_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Repos []*SyncListRepos_Repo `json:"repos" cborgen:"repos"`
}
SyncListRepos_Output is the output of a sh.tangled.sync.listRepos call.
func SyncListRepos ¶
func SyncListRepos(ctx context.Context, c util.LexClient, cursor string, limit int64, order string) (*SyncListRepos_Output, error)
SyncListRepos calls the XRPC method "sh.tangled.sync.listRepos".
cursor: Pagination cursor order: Sort direction over the service's repo listing order.
type SyncListRepos_Repo ¶
type SyncListRepos_Repo struct {
DefaultBranch *SyncListRepos_DefaultBranch `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"`
// repo: DID of the git repo as minted by the knot
Repo string `json:"repo" cborgen:"repo"`
// status: Serving status of the repo according to the knot.
Status string `json:"status" cborgen:"status"`
}
SyncListRepos_Repo is a "repo" in the sh.tangled.sync.listRepos schema.
type SyncRequestCrawl_Input ¶
type SyncRequestCrawl_Input struct {
// ensureRepo: specific repository to ensure crawling
EnsureRepo *string `json:"ensureRepo,omitempty" cborgen:"ensureRepo,omitempty"`
// hostname: Hostname of the current service (eg, Knot) that is requesting to be crawled.
Hostname string `json:"hostname" cborgen:"hostname"`
}
SyncRequestCrawl_Input is the input argument to a sh.tangled.sync.requestCrawl call.
Source Files
¶
- actorprofile.go
- cbor_gen.go
- cicancelPipeline.go
- cigetPipeline.go
- cipipeline.go
- ciqueryPipelines.go
- cisubscribePipelineLogs.go
- cisubscribePipelineLogs_ext.go
- citrigger.go
- citriggerPipeline.go
- feedcomment.go
- feedreaction.go
- feedstar.go
- gitlistRefs.go
- gitrefUpdate.go
- graphfollow.go
- graphvouch.go
- issuecomment.go
- issuestate.go
- knotaddMember.go
- knotlistKeys.go
- knotlistMembers.go
- knotlistMembersBy.go
- knotmember.go
- knotremoveMember.go
- knotsubscribeRepos.go
- knotversion.go
- labeldefinition.go
- labelop.go
- markupmarkdown.go
- pipelinecancelPipeline.go
- pipelinestatus.go
- pullcomment.go
- pullstatus.go
- repoaddCollaborator.go
- repoaddSecret.go
- repoarchive.go
- repoartifact.go
- repoblob.go
- repobranch.go
- repobranches.go
- repocollaborator.go
- repocompare.go
- repocreate.go
- repodelete.go
- repodeleteBranch.go
- repodescribeRepo.go
- repodiff.go
- repoforkStatus.go
- repoforkSync.go
- repogetDefaultBranch.go
- repohiddenRef.go
- repoissue.go
- repolanguages.go
- repolistCollaborators.go
- repolistCollaboratorsBy.go
- repolistSecrets.go
- repolog.go
- repomerge.go
- repomergeCheck.go
- repopull.go
- reporemoveCollaborator.go
- reporemoveSecret.go
- reposetDefaultBranch.go
- repotag.go
- repotags.go
- repotree.go
- spindlemember.go
- stateclosed.go
- stateopen.go
- statusclosed.go
- statusmerged.go
- statusopen.go
- synclistRepos.go
- syncrequestCrawl.go
- tangledknot.go
- tangledowner.go
- tangledpipeline.go
- tangledpublicKey.go
- tangledrepo.go
- tangledspindle.go
- tangledstring.go
- tempanalyzeMerge.go
- tempdefs.go
- tempgetArchive.go
- tempgetBlob.go
- tempgetBranch.go
- tempgetCommit.go
- tempgetDiff.go
- tempgetEntry.go
- tempgetHead.go
- tempgetTag.go
- tempgetTree.go
- templistBranches.go
- templistCommits.go
- templistLanguages.go
- templistTags.go