storage_service

package
v0.21.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (plugin.StorageService, error)

*

  • Creates a new Storage Plugin for use in GCP

Types

type StorageStorageService

type StorageStorageService struct {
	plugin.UnimplementedStoragePlugin
	// contains filtered or unexported fields
}

func (*StorageStorageService) Delete

func (s *StorageStorageService) Delete(ctx context.Context, bucket string, key string) error

*

  • Delete an Item in a Google Cloud Storage Bucket

func (*StorageStorageService) ListFiles added in v0.16.0

func (s *StorageStorageService) ListFiles(ctx context.Context, bucket string) ([]*plugin.FileInfo, error)

func (*StorageStorageService) PreSignUrl added in v0.14.0

func (s *StorageStorageService) PreSignUrl(ctx context.Context, bucket string, key string, operation plugin.Operation, expiry uint32) (string, error)

func (*StorageStorageService) Read

func (s *StorageStorageService) Read(ctx context.Context, bucket string, key string) ([]byte, error)

*

  • Retrieves a previously stored object from a Google Cloud Storage Bucket

func (*StorageStorageService) Write

func (s *StorageStorageService) Write(ctx context.Context, bucket string, key string, object []byte) error

*

  • Stores a new Item in a Google Cloud Storage Bucket

Jump to

Keyboard shortcuts

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