uploader

package
v0.0.0-...-f377a24 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSUploader

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

func NewGCSUploader

func NewGCSUploader(ctx context.Context, bucketName string, directory string) (*GCSUploader, error)

func (*GCSUploader) Upload

func (b *GCSUploader) Upload(object *UploadObject) error

type UploadObject

type UploadObject struct {
	ObjectName  string
	ContentType string
	Binary      []byte
}

Jump to

Keyboard shortcuts

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