gocmd

package
v0.0.0-...-86b2471 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 25 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
	ReadAfterListIsStronglyConsistent bool
	ScratchDir                        string
	Storage                           storage.Storage
}

Jump to

Keyboard shortcuts

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