gcsupload

package
v1.58.9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(ctx context.Context, in UploadInput) error

Types

type Dir

type Dir struct {
	Name    string // base name
	Entries []Entry
}

type Entries

type Entries []Entry

type Entry

type Entry interface {
	// contains filtered or unexported methods
}

func MustReadDir

func MustReadDir(dir FSPath) []Entry

MustReadDir reads all files in a directory and returns them as entries. It panics if the directory cannot be read.

type File

type File struct {
	Name   string // base name
	Source FSPath
}

type UploadInput

type UploadInput struct {
	Bucket  *storage.BucketHandle
	Entries Entries
}

Jump to

Keyboard shortcuts

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