uploader

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

Uploader is a Google Cloud Storage uploader.

func New

func New(client stiface.Client, bucket string) *Uploader

New returns a new Uploader using the specified Client.

func (*Uploader) Upload

func (u *Uploader) Upload(ctx context.Context, path string, content []byte) (stiface.ObjectHandle, error)

Upload uploads the provided buffer to the specified GCS path.

Jump to

Keyboard shortcuts

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