module

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, module, version string, del Deleter, timeout time.Duration) 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, timeout time.Duration) 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