Documentation
¶
Overview ¶
Package GCS contains the code to interface with Google Cloud Storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGcsUri ¶
ParseGcsUri parses a "gs://" URI into a bucket, name pair. Inspired by: https://github.com/GoogleCloudPlatform/gifinator/blob/master/internal/gcsref/gcsref.go#L37
Types ¶
type GCS ¶
type GCS struct {
// contains filtered or unexported fields
}
func (*GCS) GetReader ¶
func (g *GCS) GetReader(name string) (io.ReadCloser, error)
Get a ReaderCloser of a GCS file.
func (*GCS) Insert ¶
Create a GCS file. Media is the Reader from which the data will be read and then sent to GCS.
func (*GCS) UrlForName ¶
Given a file name, return a fully qualified gs:// URL
Click to show internal directories.
Click to hide internal directories.