Replicate executes source-authoritative relay-only replication between two remotes.
(ctx context.Context, req SyncRequest)
| 77 | |
| 78 | // Replicate executes source-authoritative relay-only replication between two remotes. |
| 79 | func (c *Client) Replicate(ctx context.Context, req SyncRequest) (SyncResult, error) { |
| 80 | req.Policy.Mode = ModeReplicate |
| 81 | return c.Sync(ctx, req) |
| 82 | } |
| 83 | |
| 84 | func (c *Client) buildProbeConfig(ctx context.Context, req ProbeRequest) (internalbridge.Config, error) { |
| 85 | sourceAuth, err := c.authFor(ctx, req.Source, SourceRole) |