Documentation
¶
Index ¶
- func Register(r *strategy.Registry, cloneManager gitclone.ManagerProvider)
- func VersionToGitRef(version string) string
- type CompositeFetcher
- func (c *CompositeFetcher) Download(ctx context.Context, path, version string) (info, mod, zip io.ReadSeekCloser, err error)
- func (c *CompositeFetcher) IsPrivate(modulePath string) bool
- func (c *CompositeFetcher) List(ctx context.Context, path string) (versions []string, err error)
- func (c *CompositeFetcher) Query(ctx context.Context, path, query string) (version string, t time.Time, err error)
- type Config
- type Strategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionToGitRef ¶
VersionToGitRef converts a Go module version string to a git ref. For pseudo-versions (e.g. v0.0.0-20160603174536-ad42235f7e24), it extracts the commit hash suffix. For all other versions (tagged releases, pre-releases, +incompatible), it returns the version unchanged.
Types ¶
type CompositeFetcher ¶
type CompositeFetcher struct {
// contains filtered or unexported fields
}
CompositeFetcher routes module requests to either public or private fetchers based on module path patterns.
func NewCompositeFetcher ¶
func (*CompositeFetcher) Download ¶
func (c *CompositeFetcher) Download(ctx context.Context, path, version string) (info, mod, zip io.ReadSeekCloser, err error)
func (*CompositeFetcher) IsPrivate ¶
func (c *CompositeFetcher) IsPrivate(modulePath string) bool
Click to show internal directories.
Click to hide internal directories.