Documentation ¶
Index ¶
- func CloneBlob(datum *blob.Blob) *blob.Blob
- func ExpectEqualBlob(actual *blob.Blob, expected *blob.Blob)
- func ExpectEqualBlobs(actual blob.Blobs, expected blob.Blobs)
- func NewObjectFromBlob(datum *blob.Blob, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromFilter(datum *blob.Filter, objectFormat test.ObjectFormat) map[string]interface{}
- func RandomBlob() *blob.Blob
- func RandomBlobs(minimumLength int, maximumLength int) blob.Blobs
- func RandomContent() *blob.Content
- func RandomCreate() *blob.Create
- func RandomFilter() *blob.Filter
- func RandomID() string
- func RandomStatuses() []string
- type Client
- func (c *Client) AssertOutputsEmpty()
- func (c *Client) Create(ctx context.Context, userID string, create *blob.Create) (*blob.Blob, error)
- func (c *Client) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (c *Client) Get(ctx context.Context, id string) (*blob.Blob, error)
- func (c *Client) GetContent(ctx context.Context, id string) (*blob.Content, error)
- func (c *Client) List(ctx context.Context, userID string, filter *blob.Filter, ...) (blob.Blobs, error)
- type CreateInput
- type CreateOutput
- type DeleteInput
- type DeleteOutput
- type GetContentInput
- type GetContentOutput
- type GetInput
- type GetOutput
- type ListInput
- type ListOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectFromBlob ¶
func NewObjectFromBlob(datum *blob.Blob, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromFilter ¶
func NewObjectFromFilter(datum *blob.Filter, objectFormat test.ObjectFormat) map[string]interface{}
func RandomBlob ¶
func RandomContent ¶
func RandomCreate ¶
func RandomFilter ¶
func RandomStatuses ¶
func RandomStatuses() []string
Types ¶
type Client ¶
type Client struct { ListInvocations int ListInputs []ListInput ListStub func(ctx context.Context, userID string, filter *blob.Filter, pagination *page.Pagination) (blob.Blobs, error) ListOutputs []ListOutput ListOutput *ListOutput CreateInvocations int CreateInputs []CreateInput CreateStub func(ctx context.Context, userID string, create *blob.Create) (*blob.Blob, error) CreateOutputs []CreateOutput CreateOutput *CreateOutput GetInvocations int GetInputs []GetInput GetStub func(ctx context.Context, id string) (*blob.Blob, error) GetOutputs []GetOutput GetOutput *GetOutput GetContentInvocations int GetContentInputs []GetContentInput GetContentStub func(ctx context.Context, id string) (*blob.Content, error) GetContentOutputs []GetContentOutput GetContentOutput *GetContentOutput DeleteInvocations int DeleteInputs []DeleteInput DeleteStub func(ctx context.Context, id string, condition *request.Condition) (bool, error) DeleteOutputs []DeleteOutput DeleteOutput *DeleteOutput }
func (*Client) AssertOutputsEmpty ¶
func (c *Client) AssertOutputsEmpty()
func (*Client) GetContent ¶
type CreateInput ¶
type CreateOutput ¶
type DeleteInput ¶
type DeleteOutput ¶
type GetContentInput ¶
type GetContentOutput ¶
type ListOutput ¶
Click to show internal directories.
Click to hide internal directories.