Documentation
¶
Index ¶
- func ResponseError(response *http.Response) error
- func ResponseErrorFrom(body []byte) error
- type Client
- func (client *Client) ChangeACL(path, acl string) error
- func (client *Client) CreateBucket(name, region, acl string) error
- func (client *Client) Delete(path string) error
- func (client *Client) DeleteBucket(name string) error
- func (client *Client) Get(key string) (io.Reader, error)
- func (client *Client) GetACL(key string) ([]models.Grant, error)
- func (client *Client) List() ([]models.Object, error)
- func (client *Client) ListBuckets() ([]models.Bucket, error)
- func (client *Client) NewUpload(path string, headers *http.Header) (*Upload, error)
- func (client *Client) Trace(writer io.Writer, traceLevel TraceLevel)
- type TraceLevel
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseErrorFrom ¶
Types ¶
type Client ¶
type Client struct { AccessKeyId string SecretAccessKey string Token string Region string Bucket string Domain string Protocol string SOCKS5Proxy string SignatureVersion int CACertificates []string SkipSystemCAs bool InsecureSkipVerify bool UsePathBuckets bool // contains filtered or unexported fields }
func (*Client) CreateBucket ¶
func (*Client) DeleteBucket ¶
type TraceLevel ¶
type TraceLevel int8
const ( NoTrace TraceLevel = 0 TraceHeaders TraceLevel = 1 TraceAll TraceLevel = 2 )
Click to show internal directories.
Click to hide internal directories.