gcs

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gcs

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

Gcs is a file storage provider for Google Cloud Storage

func New

func New(bucket *storage.BucketHandle) *Gcs

New returns a new Gcs provider

func (*Gcs) DeleteFile

func (g *Gcs) DeleteFile(ctx context.Context, path string) error

DeleteFile deletes a file

func (*Gcs) ReadFile

func (g *Gcs) ReadFile(ctx context.Context, path string, w io.Writer) error

OpenFileReader opens a file for reading

func (*Gcs) WriteFile

func (g *Gcs) WriteFile(ctx context.Context, path string, r io.ReadSeeker) error

OpenFileWriter opens a file for writing

Jump to

Keyboard shortcuts

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