Documentation ¶
Overview ¶
//////////////////////////////////////////////////////////////////// delete_client.go ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// download_client.go ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// listing_client.go ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// object.go ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// upload_client.go ////////////////////////////////////////////////////////////////////
Index ¶
- type 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
- type DownloadClient
- type ListingClient
- type UploadClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
//////////////////////////////////////////////////////////////////// New Client. ////////////////////////////////////////////////////////////////////
func (*Client) NewDeleteClient ¶
func (c *Client) NewDeleteClient(object string) *DeleteClient
//////////////////////////////////////////////////////////////////// New DeleteClient. ////////////////////////////////////////////////////////////////////
func (*Client) NewDeleteClientWithCredentials ¶
func (c *Client) NewDeleteClientWithCredentials(object, credentialsFile string) *DeleteClient
//////////////////////////////////////////////////////////////////// New DeleteClient with credentials. ////////////////////////////////////////////////////////////////////
func (*Client) NewDeleteClientWithTokenSource ¶
func (c *Client) NewDeleteClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *DeleteClient
//////////////////////////////////////////////////////////////////// New DeleteClient with token source. ////////////////////////////////////////////////////////////////////
func (*Client) NewDownloadClient ¶
func (c *Client) NewDownloadClient(object string) *DownloadClient
//////////////////////////////////////////////////////////////////// New DownloadClient. ////////////////////////////////////////////////////////////////////
func (*Client) NewDownloadClientWithCredentials ¶
func (c *Client) NewDownloadClientWithCredentials(object, credentialsFile string) *DownloadClient
//////////////////////////////////////////////////////////////////// New DownloadClient with credentials. ////////////////////////////////////////////////////////////////////
func (*Client) NewDownloadClientWithTokenSource ¶
func (c *Client) NewDownloadClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *DownloadClient
//////////////////////////////////////////////////////////////////// New DownloadClient with token source. ////////////////////////////////////////////////////////////////////
func (*Client) NewListingClient ¶
func (c *Client) NewListingClient() *ListingClient
//////////////////////////////////////////////////////////////////// New ListingClient. ////////////////////////////////////////////////////////////////////
func (*Client) NewListingClientWithCredentials ¶
func (c *Client) NewListingClientWithCredentials(credentialsFile string) *ListingClient
//////////////////////////////////////////////////////////////////// New ListingClient with credentials. ////////////////////////////////////////////////////////////////////
func (*Client) NewListingClientWithTokenSource ¶
func (c *Client) NewListingClientWithTokenSource(tokenSource oauth2.TokenSource) *DeleteClient
//////////////////////////////////////////////////////////////////// New ListingClient with token source. ////////////////////////////////////////////////////////////////////
func (*Client) NewUploadClientWithCredentials ¶
func (c *Client) NewUploadClientWithCredentials(object, credentialsFile string) *UploadClient
//////////////////////////////////////////////////////////////////// New UploadClient with credentials. ////////////////////////////////////////////////////////////////////
func (*Client) NewUploadClientWithTokenSource ¶
func (c *Client) NewUploadClientWithTokenSource(object string, tokenSource oauth2.TokenSource) *UploadClient
//////////////////////////////////////////////////////////////////// New UploadClient with token source. ////////////////////////////////////////////////////////////////////
type DeleteClient ¶
type DeleteClient struct { *Client CredentialFile string Object string TokenSource oauth2.TokenSource }
func (*DeleteClient) Run ¶
func (c *DeleteClient) Run() error
//////////////////////////////////////////////////////////////////// Run. ////////////////////////////////////////////////////////////////////
func (*DeleteClient) SetTimeout ¶
func (c *DeleteClient) SetTimeout(sec int) *DeleteClient
//////////////////////////////////////////////////////////////////// Set timeout second. ////////////////////////////////////////////////////////////////////
type DownloadClient ¶
type DownloadClient struct { *Client CredentialFile string Object string TokenSource oauth2.TokenSource }
func (*DownloadClient) Run ¶
func (c *DownloadClient) Run() ([]byte, error)
//////////////////////////////////////////////////////////////////// Run. ////////////////////////////////////////////////////////////////////
func (*DownloadClient) SetTimeout ¶
func (c *DownloadClient) SetTimeout(sec int) *DownloadClient
//////////////////////////////////////////////////////////////////// Set timeout second. ////////////////////////////////////////////////////////////////////
type ListingClient ¶
type ListingClient struct { *Client CredentialFile string Delimiter string Prefix string TokenSource oauth2.TokenSource }
func (*ListingClient) Run ¶
func (c *ListingClient) Run() ([]*storage.ObjectAttrs, error)
//////////////////////////////////////////////////////////////////// Run. ////////////////////////////////////////////////////////////////////
func (*ListingClient) SetDelimiter ¶
func (c *ListingClient) SetDelimiter(delimiter string) *ListingClient
//////////////////////////////////////////////////////////////////// Set delimiter. ////////////////////////////////////////////////////////////////////
func (*ListingClient) SetPrefix ¶
func (c *ListingClient) SetPrefix(prefix string) *ListingClient
//////////////////////////////////////////////////////////////////// Set prefix. ////////////////////////////////////////////////////////////////////
func (*ListingClient) SetTimeout ¶
func (c *ListingClient) SetTimeout(sec int) *ListingClient
//////////////////////////////////////////////////////////////////// Set timeout second. ////////////////////////////////////////////////////////////////////
type UploadClient ¶
type UploadClient struct { *Client CredentialFile string Object string TokenSource oauth2.TokenSource }
func (*UploadClient) RunWithDataUri ¶
func (c *UploadClient) RunWithDataUri(dataUri string) (*storage.ObjectAttrs, error)
//////////////////////////////////////////////////////////////////// Run with data URI. ////////////////////////////////////////////////////////////////////
func (*UploadClient) RunWithFilePath ¶
func (c *UploadClient) RunWithFilePath(filePath string) (*storage.ObjectAttrs, error)
//////////////////////////////////////////////////////////////////// Run with file path. ////////////////////////////////////////////////////////////////////
func (*UploadClient) SetTimeout ¶
func (c *UploadClient) SetTimeout(sec int) *UploadClient
//////////////////////////////////////////////////////////////////// Set timeout second. ////////////////////////////////////////////////////////////////////