Documentation ¶
Index ¶
- func CloneBlob(datum *blob.Blob) *blob.Blob
- func MatchBlob(datum *blob.Blob) gomegaTypes.GomegaMatcher
- func MatchBlobArray(datum blob.BlobArray) gomegaTypes.GomegaMatcher
- 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 RandomBlobArray(minimumLength int, maximumLength int) blob.BlobArray
- func RandomContent() *blob.Content
- 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, content *blob.Content) (*blob.Blob, error)
- func (c *Client) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (c *Client) DeleteAll(ctx context.Context, userID string) 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.BlobArray, error)
- type CreateInput
- type CreateOutput
- type DeleteInput
- type DeleteOutput
- type GetContentOutput
- type GetOutput
- type ListInput
- type ListOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchBlob ¶ added in v1.31.0
func MatchBlob(datum *blob.Blob) gomegaTypes.GomegaMatcher
func MatchBlobArray ¶ added in v1.31.0
func MatchBlobArray(datum blob.BlobArray) gomegaTypes.GomegaMatcher
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 RandomBlobArray ¶ added in v1.31.0
func RandomContent ¶
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.BlobArray, error) ListOutputs []ListOutput ListOutput *ListOutput CreateInvocations int CreateInputs []CreateInput CreateStub func(ctx context.Context, userID string, content *blob.Content) (*blob.Blob, error) CreateOutputs []CreateOutput CreateOutput *CreateOutput DeleteAllInvocations int DeleteAllInputs []string DeleteAllStub func(ctx context.Context, id string) error DeleteAllOutputs []error DeleteAllOutput *error GetInvocations int GetInputs []string GetStub func(ctx context.Context, id string) (*blob.Blob, error) GetOutputs []GetOutput GetOutput *GetOutput GetContentInvocations int GetContentInputs []string 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 GetContentOutput ¶
type ListInput ¶
type ListInput struct { UserID string Filter *blob.Filter Pagination *page.Pagination }
type ListOutput ¶
Click to show internal directories.
Click to hide internal directories.