gcpblob

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPBlob

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

GCPBlob provides blob storage services for car files.

func New

func New(projectID string) (*GCPBlob, error)

New returns a new GCP blob storage.

func (*GCPBlob) Close

func (b *GCPBlob) Close() error

Close closes the service.

func (*GCPBlob) Store

func (b *GCPBlob) Store(ctx context.Context, name string, r io.Reader) (string, error)

Store stores a file and returns a public URL.

Jump to

Keyboard shortcuts

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