Documentation ¶
Index ¶
- Constants
- type ACL
- type 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, 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) 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
Constants ¶
View Source
const ( Private = ACL("") PublicRead = ACL(".r:*,.rlistings") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a means to access the OpenStack Object Storage Service.
func (*Client) CreateContainer ¶
CreateContainer creates a container with the given name.
func (*Client) DeleteContainer ¶
DeleteContainer deletes the specified container.
func (*Client) DeleteObject ¶
DeleteObject removes an object from the storage system permanently.
func (*Client) HeadObject ¶
HeadObject retrieves object metadata and other standard HTTP headers.
func (*Client) List ¶
func (c *Client) List(containerName, prefix, delim, marker string, limit int) (contents []ContainerContents, err error)
GetObject retrieves the specified object's data.
Click to show internal directories.
Click to hide internal directories.