MCPcopy
hub / github.com/hashicorp/go-getter / HgGetter

Struct HgGetter

get_hg.go:19–24  ·  view source on GitHub ↗

HgGetter is a Getter implementation that will download a module from a Mercurial repository.

Source from the content-addressed store, hash-verified

17// HgGetter is a Getter implementation that will download a module from
18// a Mercurial repository.
19type HgGetter struct {
20
21 // Timeout sets a deadline which all hg CLI operations should
22 // complete within. Defaults to zero which means no timeout.
23 Timeout time.Duration
24}
25
26func (g *HgGetter) Mode(ctx context.Context, _ *url.URL) (Mode, error) {
27 return ModeDir, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected