storage_service

package
v0.14.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(bucket string, key string) error

*

  • Delete an Item in a Google Cloud Storage Bucket

func (*StorageStorageService) PreSignUrl added in v0.14.0

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

func (*StorageStorageService) Read

func (s *StorageStorageService) Read(bucket string, key string) ([]byte, error)

*

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

func (*StorageStorageService) Write

func (s *StorageStorageService) Write(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