Documentation ¶
Overview ¶
Package gcsx contains utilities for working with Google Cloud Storage (GCS).
Index ¶
- func MakeObject(bucket, path string) string
- func NewClient(ctx context.Context, scope string) (*storage.Service, error)
- func ParseObject(object string) (bucket, path string, err error)
- func ReadObject(client *storage.Service, bucket, object string) ([]byte, error)
- func WriteObject(client *storage.Service, bucket, object string, r io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeObject ¶
MakeObject creates a object location from bucket and path. For example, MakeObject("foo", "bar/baz") returns "gs://foo/bar/baz". The bucket must be non-empty.
func ParseObject ¶
ParseObject deconstructs a GCS object name into (bucket, name).
func ReadObject ¶
ReadObject reads the content of the given object in full.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.