MCPcopy Create free account
hub / github.com/entireio/git-sync / Bootstrap

Method Bootstrap

unstable/client.go:192–205  ·  view source on GitHub ↗
(ctx context.Context, req BootstrapRequest)

Source from the content-addressed store, hash-verified

190}
191
192func (c *Client) Bootstrap(ctx context.Context, req BootstrapRequest) (Result, error) {
193 if err := req.Options.Validate(); err != nil {
194 return Result{}, fmt.Errorf("bootstrap: %w", err)
195 }
196 cfg, err := c.buildBootstrapConfig(ctx, req)
197 if err != nil {
198 return Result{}, err
199 }
200 result, err := syncer.Bootstrap(ctx, cfg)
201 if err != nil {
202 return Result{}, fmt.Errorf("bootstrap: %w", err)
203 }
204 return result, nil
205}
206
207func (c *Client) Fetch(ctx context.Context, req FetchRequest) (FetchResult, error) {
208 if err := req.Options.Validate(); err != nil {

Callers 3

newBootstrapCmdFunction · 0.80
executeScenarioFunction · 0.80

Calls 3

buildBootstrapConfigMethod · 0.95
BootstrapFunction · 0.92
ValidateMethod · 0.45

Tested by 1