Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectInfo ¶
type ObjectInfo struct {
Name string `json:"name"`
Size uint64 `json:"size"`
Updated string `json:"updated"`
}
ObjectInfo contains metadata about a GCS object.
type Service ¶
Service wraps the Google Cloud Storage service and config.
func NewService ¶
NewService creates an authenticated GCS service.
func NewServiceWithClient ¶
func NewServiceWithClient(ctx context.Context, client *http.Client, basePath string) (*Service, error)
NewServiceWithClient creates a GCS service using a provided HTTP client. This is useful for testing with mock servers.
func (*Service) DownloadObject ¶
DownloadObject downloads a single object from GCS and returns a ReadCloser.
func (*Service) ListObjects ¶
ListObjects lists objects in a GCS bucket matching the given prefix.
Click to show internal directories.
Click to hide internal directories.