github

package
v0.0.0-...-1056671 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repositories map[string][]string `envconfig:"REPOSITORIES"`
	OrgMappings  map[string]string   `envconfig:"ORG_MAPPINGS"`
	Token        string              `envconfig:"TOKEN"`
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, c HTTPClient) *Service

func (*Service) ProxyDownload

func (s *Service) ProxyDownload(ctx context.Context, system, repo, module, version string, w io.Writer) error

Jump to

Keyboard shortcuts

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