MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / CreateMirrorRepo

Method CreateMirrorRepo

builder/git/gitserver/interface.go:57–57  ·  view source on GitHub ↗

Mirror CreateMirrorRepo creates a mirror repository and returns a gitea task id

(ctx context.Context, req CreateMirrorRepoReq)

Source from the content-addressed store, hash-verified

55 // Mirror
56 // CreateMirrorRepo creates a mirror repository and returns a gitea task id
57 CreateMirrorRepo(ctx context.Context, req CreateMirrorRepoReq) (int64, error)
58 // GetMirrorTaskInfo returns the Gitea mirror task info
59 GetMirrorTaskInfo(ctx context.Context, taskId int64) (*MirrorTaskInfo, error)
60 // MirrorSync requests the Gitea to start mirror synchronization

Callers 5

CreateMirrorRepoMethod · 0.65
CreateMirrorMethod · 0.65
MirrorFromSaasMethod · 0.65
CreateMirrorRepoMethod · 0.65

Implementers 2

Clientbuilder/git/gitserver/gitaly/client.go
Clientbuilder/git/gitserver/gitea/client.go

Calls

no outgoing calls

Tested by

no test coverage detected