sources

package
v0.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub struct {
	Client *github.Client
}

GitHub gets sources from GitHub.

func (*GitHub) Get

func (s *GitHub) Get(ctx context.Context, repository *github.Repository, gop string, mod module.Version, ref string) error

Get gets sources, from the GitHub zipball of ref.

type GoProxy

type GoProxy struct {
	Client *goproxy.Client
}

GoProxy gets sources from a GoProxy.

func (*GoProxy) Get

func (s *GoProxy) Get(_ context.Context, _ *github.Repository, gop string, mod module.Version, _ string) error

Get gets sources from the Go module proxy, whose zip is already pinned: ref is ignored.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL