store

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSStorage

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

AWSStorage represents a Google Cloud Storage object.

func NewAWSStorage

func NewAWSStorage(bucket string, object string) *AWSStorage

NewAWSStorage returns a Google Cloud storage item given a bucket and an object path.

func (*AWSStorage) Load

func (s *AWSStorage) Load() ([]byte, error)

Load downloads an object from a bucket and returns an error if it cannot be read.

func (*AWSStorage) Save

func (s *AWSStorage) Save(b []byte) error

Save uploads an object to a bucket and returns an error if it cannot be written.

Jump to

Keyboard shortcuts

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