Documentation ¶
Index ¶
- func CloneSource(datum *dataSource.Source) *dataSource.Source
- func CloneSources(datum dataSource.Sources) dataSource.Sources
- func CloneUpdate(datum *dataSource.Update) *dataSource.Update
- func ExpectEqualSource(actual *dataSource.Source, expected *dataSource.Source)
- func ExpectEqualSources(actual dataSource.Sources, expected dataSource.Sources)
- func ExpectEqualUpdate(actual *dataSource.Update, expected *dataSource.Update)
- 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 RandomSources(minimumLength int, maximumLength int) dataSource.Sources
- 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) Get(ctx context.Context, id string) (*dataSource.Source, error)
- func (c *Client) List(ctx context.Context, userID string, filter *dataSource.Filter, ...) (dataSource.Sources, 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 GetInput
- 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 CloneSources ¶
func CloneSources(datum dataSource.Sources) dataSource.Sources
func CloneUpdate ¶
func CloneUpdate(datum *dataSource.Update) *dataSource.Update
func ExpectEqualSource ¶
func ExpectEqualSource(actual *dataSource.Source, expected *dataSource.Source)
func ExpectEqualSources ¶
func ExpectEqualSources(actual dataSource.Sources, expected dataSource.Sources)
func ExpectEqualUpdate ¶
func ExpectEqualUpdate(actual *dataSource.Update, expected *dataSource.Update)
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 RandomSources ¶
func RandomSources(minimumLength int, maximumLength int) dataSource.Sources
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.Sources, 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 GetInvocations int GetInputs []GetInput 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.Sources, error)
type CreateInput ¶
type CreateInput struct { Context context.Context 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 { Context context.Context UserID string Filter *dataSource.Filter Pagination *page.Pagination }
type ListOutput ¶
type ListOutput struct { Sources dataSource.Sources Error error }
type UpdateInput ¶
type UpdateOutput ¶
type UpdateOutput struct { Source *dataSource.Source Error error }
Click to show internal directories.
Click to hide internal directories.