upload

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(ctx context.Context, gsClient gsClient, params *Params) error

Upload a list of directories to Google Storage.

Types

type Params

type Params struct {
	// Dir is the path to the primary directory to offload.
	//
	// Example: /path/to/swarming/logs
	SourceDir string
	// GSURL is the destination path.
	GSURL string
	// MaxConcurrentJobs is the maximum number of concurrent uploads that can happen at once
	MaxConcurrentJobs int
}

Params is a collection of parameters for uploading a directory.

Jump to

Keyboard shortcuts

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