Documentation ¶
Index ¶
- func CloneSource(datum *dataSource.Source) *dataSource.Source
- func CloneSourceArray(datum dataSource.SourceArray) dataSource.SourceArray
- func CloneUpdate(datum *dataSource.Update) *dataSource.Update
- func MatchSource(datum *dataSource.Source) gomegaTypes.GomegaMatcher
- func MatchSourceArray(datum dataSource.SourceArray) gomegaTypes.GomegaMatcher
- func MatchUpdate(datum *dataSource.Update) gomegaTypes.GomegaMatcher
- func NewObjectFromCreate(datum *dataSource.Create, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromFilter(datum *dataSource.Filter, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromSource(datum *dataSource.Source, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromUpdate(datum *dataSource.Update, objectFormat test.ObjectFormat) map[string]interface{}
- func RandomCreate() *dataSource.Create
- func RandomFilter() *dataSource.Filter
- func RandomID() string
- func RandomSource() *dataSource.Source
- func RandomSourceArray(minimumLength int, maximumLength int) dataSource.SourceArray
- func RandomState() string
- func RandomStates() []string
- func RandomUpdate() *dataSource.Update
- type Client
- func (c *Client) AssertOutputsEmpty()
- func (c *Client) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, 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) (*dataSource.Source, error)
- func (c *Client) List(ctx context.Context, userID string, filter *dataSource.Filter, ...) (dataSource.SourceArray, error)
- func (c *Client) Update(ctx context.Context, id string, condition *request.Condition, ...) (*dataSource.Source, error)
- type CreateInput
- type CreateOutput
- type DeleteInput
- type DeleteOutput
- type GetOutput
- type ListInput
- type ListOutput
- type UpdateInput
- type UpdateOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneSource ¶
func CloneSource(datum *dataSource.Source) *dataSource.Source
func CloneSourceArray ¶ added in v1.31.0
func CloneSourceArray(datum dataSource.SourceArray) dataSource.SourceArray
func CloneUpdate ¶
func CloneUpdate(datum *dataSource.Update) *dataSource.Update
func MatchSource ¶ added in v1.31.0
func MatchSource(datum *dataSource.Source) gomegaTypes.GomegaMatcher
func MatchSourceArray ¶ added in v1.31.0
func MatchSourceArray(datum dataSource.SourceArray) gomegaTypes.GomegaMatcher
func MatchUpdate ¶ added in v1.31.0
func MatchUpdate(datum *dataSource.Update) gomegaTypes.GomegaMatcher
func NewObjectFromCreate ¶
func NewObjectFromCreate(datum *dataSource.Create, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromFilter ¶
func NewObjectFromFilter(datum *dataSource.Filter, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromSource ¶
func NewObjectFromSource(datum *dataSource.Source, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromUpdate ¶
func NewObjectFromUpdate(datum *dataSource.Update, objectFormat test.ObjectFormat) map[string]interface{}
func RandomCreate ¶
func RandomCreate() *dataSource.Create
func RandomFilter ¶
func RandomFilter() *dataSource.Filter
func RandomSource ¶
func RandomSource() *dataSource.Source
func RandomSourceArray ¶ added in v1.31.0
func RandomSourceArray(minimumLength int, maximumLength int) dataSource.SourceArray
func RandomState ¶
func RandomState() string
func RandomStates ¶
func RandomStates() []string
func RandomUpdate ¶
func RandomUpdate() *dataSource.Update
Types ¶
type Client ¶
type Client struct { ListInvocations int ListInputs []ListInput ListStub func(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.SourceArray, error) ListOutputs []ListOutput ListOutput *ListOutput CreateInvocations int CreateInputs []CreateInput CreateStub func(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, 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) (*dataSource.Source, error) GetOutputs []GetOutput GetOutput *GetOutput UpdateInvocations int UpdateInputs []UpdateInput UpdateStub func(ctx context.Context, id string, condition *request.Condition, create *dataSource.Update) (*dataSource.Source, error) UpdateOutputs []UpdateOutput UpdateOutput *UpdateOutput 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) Create ¶
func (c *Client) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
func (*Client) List ¶
func (c *Client) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.SourceArray, error)
type CreateInput ¶
type CreateInput struct { UserID string Create *dataSource.Create }
type CreateOutput ¶
type CreateOutput struct { Source *dataSource.Source Error error }
type DeleteInput ¶
type DeleteOutput ¶
type GetOutput ¶
type GetOutput struct { Source *dataSource.Source Error error }
type ListInput ¶
type ListInput struct { UserID string Filter *dataSource.Filter Pagination *page.Pagination }
type ListOutput ¶
type ListOutput struct { SourceArray dataSource.SourceArray Error error }
type UpdateInput ¶
type UpdateInput struct { ID string Condition *request.Condition Update *dataSource.Update }
type UpdateOutput ¶
type UpdateOutput struct { Source *dataSource.Source Error error }
Click to show internal directories.
Click to hide internal directories.