cloudstorage

package
v0.0.0-...-bb15e6e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Overview

Package cloudstorage registers the "googlecloudstorage" blob storage type, storing blobs on Google Cloud Storage (not Google Drive). See https://cloud.google.com/products/cloud-storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func (*Storage) EnumerateBlobs

func (s *Storage) EnumerateBlobs(ctx context.Context, dest chan<- blob.SizedRef, after string, limit int) error

func (*Storage) Fetch

func (s *Storage) Fetch(ctx context.Context, br blob.Ref) (rc io.ReadCloser, size uint32, err error)

func (*Storage) MaxEnumerate

func (s *Storage) MaxEnumerate() int

func (*Storage) ReceiveBlob

func (s *Storage) ReceiveBlob(ctx context.Context, br blob.Ref, source io.Reader) (blob.SizedRef, error)

func (*Storage) RemoveBlobs

func (s *Storage) RemoveBlobs(ctx context.Context, blobs []blob.Ref) error

func (*Storage) ResetStorageGeneration

func (s *Storage) ResetStorageGeneration() error

func (*Storage) StatBlobs

func (s *Storage) StatBlobs(ctx context.Context, blobs []blob.Ref, fn func(blob.SizedRef) error) error

func (*Storage) StorageGeneration

func (s *Storage) StorageGeneration() (time.Time, string, error)

func (*Storage) SubFetch

func (s *Storage) SubFetch(ctx context.Context, br blob.Ref, offset, length int64) (rc io.ReadCloser, err error)

Jump to

Keyboard shortcuts

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