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.
Click to show internal directories.
Click to hide internal directories.