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: 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(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