Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for S3.
func (*Client) GeneratePresignedURL ¶ added in v0.3.0
func (c *Client) GeneratePresignedURL(key string, expire time.Duration, requestType RequestType) (string, error)
GeneratePresignedURL generates a pre-signed URL.
func (*Client) ListObjectsPages ¶ added in v0.22.0
func (c *Client) ListObjectsPages( prefix string, f func(page *s3.ListObjectsOutput, lastPage bool) bool, ) error
ListObjectsPages returns S3 objects with pagination.
type RequestType ¶ added in v0.32.0
type RequestType string
RequestType is the type of the request.
const ( // RequestTypeGetObject is the type for getting an object. RequestTypeGetObject RequestType = "GetObject" // RequestTypePutObject is the type for putting an object. RequestTypePutObject RequestType = "PutObject" )
Click to show internal directories.
Click to hide internal directories.