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 reads and writes objects in one bucket.
func New ¶
New builds a client for bucket. timeout is the deadline for each call. maxRetryAttempts is passed to the SDK as MaxAttempts, which counts the first attempt.
func (*Client) Get ¶
Get returns the object at key. A missing key wraps ErrNotFound. The caller closes Body. Closing it ends the Get deadline.
type GetResult ¶
GetResult is the body and metadata for one key. The caller closes Body. The Get deadline stays in effect until Body is closed.
type ListResult ¶
type ListResult struct {
Objects []ObjectInfo
NextContinuationToken string
}
ListResult is one page of objects. NextContinuationToken is empty on the last page.