Documentation ¶
Overview ¶
package copy provides methods for copying the contents of remote resources in to `blob.Bucket` instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyURLStringToBucket ¶
func CopyURLStringToBucket(ctx context.Context, opts *CopyURLOptions, uri string) error
CopyURLToBucket will parse 'uri' to ensure it is a valid `url.URL` instance and then fetch and copy its contents to a file in a `blob.Bucket` instance.
func CopyURLToBucket ¶
CopyURLToBucket will fetch and copy the contents of 'u' to a file in a `blob.Bucket` instance.
Types ¶
type CopyURLOptions ¶
type CopyURLOptions struct { // The `blob.Bucket` instance where the body of URL requests will be copied to. Bucket *blob.Bucket // Any option `blob.WriterOptions` to specify when creating a new `blob.Writer` instance. WriterOptions *blob.WriterOptions // An optional filename for the new file. If empty then basename of the URL's `Path` component will be used. Filename string // Display a progress meter as a file is being copied in to a bucket ShowProgress bool }
Click to show internal directories.
Click to hide internal directories.