module

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, module, version string, delete Deleter) error

Delete deletes .info, .mod and .zip files from the blob store in parallel. Returns multierror containing errors from all deletes and timeouts

func Upload

func Upload(ctx context.Context, module, version string, info, mod, zip io.Reader, uploader Uploader) error

Upload saves .info, .mod and .zip files to the blob store in parallel. Returns multierror containing errors from all uploads and timeouts

Types

type Deleter

type Deleter func(ctx context.Context, path string) error

Deleter takes a path to a file and deletes it from the blob store

type Uploader

type Uploader func(ctx context.Context, path, contentType string, stream io.Reader) error

Uploader takes a stream and saves it to the blob store under a given path

Jump to

Keyboard shortcuts

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