storage_service

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 11 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) 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