Documentation ¶
Index ¶
- func NewClient(region, accessKey, secretKey, endpoint, bucket string) (types.Client, error)
- func NewClientFromConfig(config map[string]string) (types.Client, error)
- type S3Client
- func (c S3Client) Delete(object string) error
- func (c S3Client) Get(object string) (types.Object, io.Reader, error)
- func (c S3Client) Head(object string) (types.Object, error)
- func (c S3Client) List(prefix string) ([]types.Object, error)
- func (c S3Client) Put(object string, body io.Reader) error
- func (c S3Client) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
func (S3Client) Delete ¶
Delete deletes an object. This function does not return an error if the object does not exist.
func (S3Client) Head ¶
Head retrieves an object metadata.
Errors:
- ErrNotFound: if the object is not found.
Click to show internal directories.
Click to hide internal directories.