Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPStorage ¶
type GCPStorage struct {
// contains filtered or unexported fields
}
GCPStorage represents a Google Cloud Storage object.
func NewGCPStorage ¶
func NewGCPStorage(bucket string, object string) *GCPStorage
NewGCPStorage returns a Google Cloud storage item given a bucket and an object path.
func (*GCPStorage) Load ¶
func (s *GCPStorage) Load() ([]byte, error)
Load downloads an object from a bucket and returns an error if it cannot be read.
func (*GCPStorage) Save ¶
func (s *GCPStorage) 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.