Versions in this module Expand all Collapse all v2 v2.0.1 Jul 1, 2020 Changes in this version + const Private + const PublicRead + type ACL string + type Client struct + func New(client client.Client) *Client + func (c *Client) CreateContainer(containerName string, acl ACL) error + func (c *Client) DeleteContainer(containerName string) error + func (c *Client) DeleteObject(containerName, objectName string) error + func (c *Client) GetObject(containerName, objectName string) (obj []byte, err error) + func (c *Client) GetReader(containerName, objectName string) (_ io.ReadCloser, _ http.Header, err error) + func (c *Client) HeadObject(containerName, objectName string) (http.Header, error) + func (c *Client) List(containerName, prefix, delim, marker string, limit int) (contents []ContainerContents, err error) + func (c *Client) OpenObject(containerName, objectName string, readAhead int64) (Object, http.Header, error) + func (c *Client) PutObject(containerName, objectName string, data []byte) error + func (c *Client) PutReader(containerName, objectName string, r io.Reader, length int64) error + func (c *Client) SignedURL(containerName, file string, expires time.Time) (string, error) + func (c *Client) URL(containerName, file string) (string, error) + type ContainerContents struct + ContentType string + Hash string + LastModified string + LengthBytes int + Name string + type Object interface + Size func() int64