Documentation ¶
Index ¶
- func Delete(ctx context.Context, bucketName string, path string, client *storage.Client) error
- func GetNameAndFilepathFromURI(bucketURI string) (bucketName string, path string, err error)
- func NewClient(ctx context.Context, opts ...option.ClientOption) (*storage.Client, error)
- func ReadCloser(ctx context.Context, bucketName string, path string, client *storage.Client) (io.ReadCloser, error)
- func Upload(ctx context.Context, bucketName string, path string, r io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete will remove the content at path. path should be the full path to a file in GCS.
func GetNameAndFilepathFromURI ¶
GetNameAndFilepathFromURI returns the bucketname and the path to the item inside. Will error if provided URI is not a valid URL. If the filepath is empty, returns the contextTar filename
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.