Documentation ¶
Index ¶
- Variables
- type Bucket
- type Buckets
- type CommonPrefix
- type Container
- func (c *Container) CreateStream(input *CreateStreamInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) DeleteObject(input *DeleteObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) DeleteStream(input *DeleteStreamInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) GetItem(input *GetItemInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) GetItems(input *GetItemsInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) GetObject(input *GetObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) GetRecords(input *GetRecordsInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) ListAll(input *ListAllInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) ListBucket(input *ListBucketInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) PutItem(input *PutItemInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) PutItems(input *PutItemsInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) PutObject(input *PutObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) PutRecords(input *PutRecordsInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) SeekShard(input *SeekShardInput, context interface{}, responseChan chan *Response) (*Request, error)
- func (c *Container) UpdateItem(input *UpdateItemInput, context interface{}, responseChan chan *Response) (*Request, error)
- type Content
- type Context
- type CreateStreamInput
- type DeleteObjectInput
- type DeleteStreamInput
- type ErrorWithStatusCode
- type GetItemInput
- type GetItemOutput
- type GetItemsInput
- type GetItemsOutput
- type GetObjectInput
- type GetRecordsInput
- type GetRecordsOutput
- type GetRecordsResult
- type Item
- type ItemsCursor
- type ListAllInput
- type ListAllOutput
- type ListBucketInput
- type ListBucketOutput
- type PutItemInput
- type PutItemsInput
- type PutItemsOutput
- type PutObjectInput
- type PutRecordResult
- type PutRecordsInput
- type PutRecordsOutput
- type Request
- type RequestResponse
- type Response
- type SeekShardInput
- type SeekShardInputType
- type SeekShardOutput
- type Session
- type SessionConfig
- type SetObjectInput
- type StreamRecord
- type SyncContainer
- func (sc *SyncContainer) CreateStream(input *CreateStreamInput) error
- func (sc *SyncContainer) DeleteObject(input *DeleteObjectInput) error
- func (sc *SyncContainer) DeleteStream(input *DeleteStreamInput) error
- func (sc *SyncContainer) GetItem(input *GetItemInput) (*Response, error)
- func (sc *SyncContainer) GetItems(input *GetItemsInput) (*Response, error)
- func (sc *SyncContainer) GetItemsCursor(input *GetItemsInput) (*SyncItemsCursor, error)
- func (sc *SyncContainer) GetObject(input *GetObjectInput) (*Response, error)
- func (sc *SyncContainer) GetRecords(input *GetRecordsInput) (*Response, error)
- func (sc *SyncContainer) ListBucket(input *ListBucketInput) (*Response, error)
- func (sc *SyncContainer) PutItem(input *PutItemInput) error
- func (sc *SyncContainer) PutItems(input *PutItemsInput) (*Response, error)
- func (sc *SyncContainer) PutObject(input *PutObjectInput) error
- func (sc *SyncContainer) PutRecords(input *PutRecordsInput) (*Response, error)
- func (sc *SyncContainer) SeekShard(input *SeekShardInput) (*Response, error)
- func (sc *SyncContainer) UpdateItem(input *UpdateItemInput) error
- type SyncContext
- type SyncItemsCursor
- func (ic *SyncItemsCursor) All() ([]Item, error)
- func (ic *SyncItemsCursor) Err() error
- func (ic *SyncItemsCursor) GetField(name string) interface{}
- func (ic *SyncItemsCursor) GetFieldInt(name string) (int, error)
- func (ic *SyncItemsCursor) GetFieldString(name string) (string, error)
- func (ic *SyncItemsCursor) GetFields() map[string]interface{}
- func (ic *SyncItemsCursor) GetItem() Item
- func (ic *SyncItemsCursor) Next() bool
- func (ic *SyncItemsCursor) NextItem() (Item, error)
- func (ic *SyncItemsCursor) Release()
- type SyncSession
- type UpdateItemInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTypeConversion = errors.New("Invalid type conversion")
Functions ¶
This section is empty.
Types ¶
type CommonPrefix ¶
type Container ¶
type Container struct { Sync *SyncContainer // contains filtered or unexported fields }
func (*Container) CreateStream ¶
func (c *Container) CreateStream(input *CreateStreamInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) DeleteObject ¶
func (c *Container) DeleteObject(input *DeleteObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) DeleteStream ¶
func (c *Container) DeleteStream(input *DeleteStreamInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) GetItem ¶
func (c *Container) GetItem(input *GetItemInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) GetItems ¶
func (c *Container) GetItems(input *GetItemsInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) GetObject ¶
func (c *Container) GetObject(input *GetObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) GetRecords ¶
func (c *Container) GetRecords(input *GetRecordsInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) ListAll ¶
func (c *Container) ListAll(input *ListAllInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) ListBucket ¶
func (c *Container) ListBucket(input *ListBucketInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) PutItem ¶
func (c *Container) PutItem(input *PutItemInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) PutItems ¶
func (c *Container) PutItems(input *PutItemsInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) PutObject ¶
func (c *Container) PutObject(input *PutObjectInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) PutRecords ¶
func (c *Container) PutRecords(input *PutRecordsInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) SeekShard ¶
func (c *Container) SeekShard(input *SeekShardInput, context interface{}, responseChan chan *Response) (*Request, error)
func (*Container) UpdateItem ¶
func (c *Container) UpdateItem(input *UpdateItemInput, context interface{}, responseChan chan *Response) (*Request, error)
type Context ¶
type Context struct { Sync *SyncContext // contains filtered or unexported fields }
func NewContext ¶
func (*Context) NewSession ¶
func (*Context) NewSessionFromConfig ¶
func (c *Context) NewSessionFromConfig(sc *SessionConfig) (*Session, error)
type CreateStreamInput ¶
type DeleteObjectInput ¶
type DeleteObjectInput struct {
Path string
}
type DeleteStreamInput ¶
type DeleteStreamInput struct {
Path string
}
type ErrorWithStatusCode ¶
type ErrorWithStatusCode struct {
// contains filtered or unexported fields
}
ErrorWithStatusCode is an error that holds a status code
func NewErrorWithStatusCode ¶
func NewErrorWithStatusCode(statusCode int, format string, args ...interface{}) ErrorWithStatusCode
NewErrorWithStatusCode creates an error that holds a status code
func (*ErrorWithStatusCode) StatusCode ¶
func (e *ErrorWithStatusCode) StatusCode() int
StatusCode returns the status code of the error
type GetItemInput ¶
type GetItemOutput ¶
type GetItemOutput struct {
Item Item
}
type GetItemsInput ¶
type GetItemsOutput ¶
type GetObjectInput ¶
type GetObjectInput struct {
Path string
}
type GetRecordsInput ¶
type GetRecordsOutput ¶
type GetRecordsOutput struct { NextLocation string MSecBehindLatest int RecordsBehindLatest int Records []GetRecordsResult }
type GetRecordsResult ¶
type ItemsCursor ¶
type ItemsCursor struct {
Sync *SyncItemsCursor
}
type ListAllInput ¶
type ListAllInput struct { }
type ListAllOutput ¶
type ListBucketInput ¶
type ListBucketInput struct {
Path string
}
type ListBucketOutput ¶
type PutItemInput ¶
type PutItemsInput ¶
type PutItemsOutput ¶
type PutObjectInput ¶
type PutRecordResult ¶
type PutRecordsInput ¶
type PutRecordsInput struct { Path string Records []*StreamRecord }
type PutRecordsOutput ¶
type PutRecordsOutput struct { FailedRecordCount int Records []PutRecordResult }
type RequestResponse ¶
holds both a request and response
type Response ¶
type SeekShardInput ¶
type SeekShardInput struct { Path string Type SeekShardInputType StartingSequenceNumber int Timestamp int }
type SeekShardInputType ¶
type SeekShardInputType int
const ( SeekShardInputTypeTime SeekShardInputType = iota SeekShardInputTypeSequence SeekShardInputTypeLatest SeekShardInputTypeEarliest )
type SeekShardOutput ¶
type SeekShardOutput struct {
Location string
}
type Session ¶
type Session struct { Sync *SyncSession // contains filtered or unexported fields }
type SessionConfig ¶
type SetObjectInput ¶
type StreamRecord ¶
type SyncContainer ¶
type SyncContainer struct {
// contains filtered or unexported fields
}
func (*SyncContainer) CreateStream ¶
func (sc *SyncContainer) CreateStream(input *CreateStreamInput) error
func (*SyncContainer) DeleteObject ¶
func (sc *SyncContainer) DeleteObject(input *DeleteObjectInput) error
func (*SyncContainer) DeleteStream ¶
func (sc *SyncContainer) DeleteStream(input *DeleteStreamInput) error
func (*SyncContainer) GetItem ¶
func (sc *SyncContainer) GetItem(input *GetItemInput) (*Response, error)
func (*SyncContainer) GetItems ¶
func (sc *SyncContainer) GetItems(input *GetItemsInput) (*Response, error)
func (*SyncContainer) GetItemsCursor ¶
func (sc *SyncContainer) GetItemsCursor(input *GetItemsInput) (*SyncItemsCursor, error)
func (*SyncContainer) GetObject ¶
func (sc *SyncContainer) GetObject(input *GetObjectInput) (*Response, error)
func (*SyncContainer) GetRecords ¶
func (sc *SyncContainer) GetRecords(input *GetRecordsInput) (*Response, error)
func (*SyncContainer) ListBucket ¶
func (sc *SyncContainer) ListBucket(input *ListBucketInput) (*Response, error)
func (*SyncContainer) PutItem ¶
func (sc *SyncContainer) PutItem(input *PutItemInput) error
func (*SyncContainer) PutItems ¶
func (sc *SyncContainer) PutItems(input *PutItemsInput) (*Response, error)
func (*SyncContainer) PutObject ¶
func (sc *SyncContainer) PutObject(input *PutObjectInput) error
func (*SyncContainer) PutRecords ¶
func (sc *SyncContainer) PutRecords(input *PutRecordsInput) (*Response, error)
func (*SyncContainer) SeekShard ¶
func (sc *SyncContainer) SeekShard(input *SeekShardInput) (*Response, error)
func (*SyncContainer) UpdateItem ¶
func (sc *SyncContainer) UpdateItem(input *UpdateItemInput) error
type SyncContext ¶
type SyncItemsCursor ¶
type SyncItemsCursor struct {
// contains filtered or unexported fields
}
func (*SyncItemsCursor) GetField ¶
func (ic *SyncItemsCursor) GetField(name string) interface{}
func (*SyncItemsCursor) GetFieldInt ¶
func (ic *SyncItemsCursor) GetFieldInt(name string) (int, error)
func (*SyncItemsCursor) GetFieldString ¶
func (ic *SyncItemsCursor) GetFieldString(name string) (string, error)
func (*SyncItemsCursor) GetFields ¶
func (ic *SyncItemsCursor) GetFields() map[string]interface{}
func (*SyncItemsCursor) GetItem ¶
func (ic *SyncItemsCursor) GetItem() Item
func (*SyncItemsCursor) Next ¶
func (ic *SyncItemsCursor) Next() bool
Next gets the next matching item. this may potentially block as this lazy loads items from the collection
func (*SyncItemsCursor) NextItem ¶
func (ic *SyncItemsCursor) NextItem() (Item, error)
NextItem gets the next matching item. this may potentially block as this lazy loads items from the collection
func (*SyncItemsCursor) Release ¶
func (ic *SyncItemsCursor) Release()
Release releases a cursor and its underlying resources
type SyncSession ¶
type SyncSession struct {
// contains filtered or unexported fields
}
func (*SyncSession) ListAll ¶
func (ss *SyncSession) ListAll() (*Response, error)
Click to show internal directories.
Click to hide internal directories.