Documentation ¶
Overview ¶
Package testgcs is a light GCS client used for testings to avoid pulling in dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a lightweight GCS client for testing.
func NewClient ¶
func NewClient(tp auth.TokenProvider) *Client
NewClient creates a Client using the provided cloud.google.com/go/auth.TokenProvider for authentication.
func (*Client) CreateBucket ¶
CreateBucket creates the specified bucket.
func (*Client) DeleteBucket ¶
DeleteBucket deletes the specified bucket.
func (*Client) DownloadObject ¶
DownloadObject returns an http.Response who's body can be consumed to read the contents of an object.
Click to show internal directories.
Click to hide internal directories.