zips

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2018 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rewrite

Rewrite the zip we downloaded from the upstream VCS into a zip file in the format required by the go/cmd tooling. Fundamentally the zip file the Go tooling requires re-namespacing the content under the directory path of the module.

Additionally, the go/cmd does the following - limits the size of upstream .zip file to 500 MiB - limits the size of upstream LICENSE to 16 MiB - limits the size of upstream go.mod file to 16MiB - - removes submodules -

The only complete "documentation" for the format of the new zip archive is in the go tool source code: go/src/cmd/go/internal/modfetch/coderepo.go

Types

type Client

type Client interface {
	Get(*upstream.Request) (repository.Blob, error)
	Protocols() []string
}

func NewClient

func NewClient(clients ...Client) Client

func NewHTTPClient

func NewHTTPClient(options HTTPOptions) Client

type HTTPOptions

type HTTPOptions struct {
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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