Versions in this module Expand all Collapse all v0 v0.1.0 Jan 2, 2022 Changes in this version + type Client struct + BucketName string + TimeoutSec int + func NewClient(bucketName string) *Client + func (c *Client) NewDeleteClient(object string) *DeleteClient + func (c *Client) NewDeleteClientWithCredentials(object, credentialsFile string) *DeleteClient + func (c *Client) NewDeleteClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *DeleteClient + func (c *Client) NewDownloadClient(object string) *DownloadClient + func (c *Client) NewDownloadClientWithCredentials(object, credentialsFile string) *DownloadClient + func (c *Client) NewDownloadClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *DownloadClient + func (c *Client) NewListingClient() *ListingClient + func (c *Client) NewListingClientWithCredentials(credentialsFile string) *ListingClient + func (c *Client) NewListingClientWithTokenSource(tokenSource oauth2.TokenSource) *DeleteClient + func (c *Client) NewUploadClientWithCredentials(object, credentialsFile string) *UploadClient + func (c *Client) NewUploadClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *UploadClient + type DeleteClient struct + CredentialFile string + Object string + TokenSource oauth2.TokenSource + func (c *DeleteClient) Run() error + func (c *DeleteClient) SetTimeout(sec int) *DeleteClient + type DownloadClient struct + CredentialFile string + Object string + TokenSource oauth2.TokenSource + func (c *DownloadClient) Run() ([]byte, error) + func (c *DownloadClient) SetTimeout(sec int) *DownloadClient + type ListingClient struct + CredentialFile string + Delimiter string + Prefix string + TokenSource oauth2.TokenSource + func (c *ListingClient) Run() ([]*storage.ObjectAttrs, error) + func (c *ListingClient) SetDelimiter(delimiter string) *ListingClient + func (c *ListingClient) SetPrefix(prefix string) *ListingClient + func (c *ListingClient) SetTimeout(sec int) *ListingClient + type UploadClient struct + CredentialFile string + Object string + TokenSource oauth2.TokenSource + func (c *UploadClient) RunWithDataUri(dataUri string) (*storage.ObjectAttrs, error) + func (c *UploadClient) RunWithFilePath(filePath string) (*storage.ObjectAttrs, error) + func (c *UploadClient) SetTimeout(sec int) *UploadClient