Documentation
¶
Index ¶
- Constants
- func GenerateFileURL(bucket string, path string, name string) string
- type CacheMode
- type Client
- func (c *Client) GetBucket() string
- func (c *Client) GetDownloadSignedURL(ctx context.Context, path string, expire time.Duration) (string, error)
- func (c *Client) GetReader(ctx context.Context, path string) (*storage.Reader, error)
- func (c *Client) GetUploadSignedURL(ctx context.Context, path string, contentType string, expire time.Duration) (string, error)
- func (c *Client) Upload(ctx context.Context, path string, name string, contentType string, ...) (string, error)
- func (c *Client) UploadForDataURL(ctx context.Context, path string, name string, cacheMode *CacheMode, ...) (string, error)
- type UploadResponse
Constants ¶
View Source
const ( // BaseURL ... GCSのURL BaseURL string = "https://storage.googleapis.com" // ChunkSize ... アップロード時の分割サイズ(メモリ不足になったら調整する) ChunkSize int = 200 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDownloadSignedURL ¶ added in v1.2.0
func (*Client) GetUploadSignedURL ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.