gocmd

package
v0.0.0-...-84ddfae Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(opts ServiceOptions) (s *Service, err error)

NewService creates a new Go module service.

func (*Service) GoMod

func (s *Service) GoMod(ctx context.Context, moduleVersion *module.Version) (data io.ReadCloser, err error)

func (*Service) Info

func (s *Service) Info(ctx context.Context, moduleVersion *module.Version) (info *gomoduleservice.Info, err error)

func (*Service) Latest

func (s *Service) Latest(ctx context.Context, modulePath string) (info *gomoduleservice.Info, err error)

func (*Service) List

func (s *Service) List(ctx context.Context, modulePath string) (io.ReadCloser, error)

func (*Service) Zip

func (s *Service) Zip(ctx context.Context, moduleVersion *module.Version) (data io.ReadCloser, err error)

type ServiceOptions

type ServiceOptions struct {
	GitCredentialHelperShell string
	HTTPProxyInfo            *config.HTTPProxyInfo
	HTTPTransport            http.RoundTripper
	MaxParallelCommands      int
	ParentProxy              *url.URL
	PrivateModules           []*config.PrivateModulesElement
	PublicModules            *config.PublicModules
	ScratchDir               string
	Storage                  storage.Storage
}

Jump to

Keyboard shortcuts

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