Documentation
¶
Index ¶
- func RandomContentAttributes() *imageStoreStructured.ContentAttributes
- func RandomUpdate() *imageStoreStructured.Update
- type CreateInput
- type CreateOutput
- type DeleteAllOutput
- type DeleteInput
- type DeleteOutput
- type DestroyAllOutput
- type DestroyInput
- type DestroyOutput
- type GetInput
- type GetOutput
- type ListInput
- type ListOutput
- type Session
- func (s *Session) AssertOutputsEmpty()
- func (s *Session) Create(ctx context.Context, userID string, metadata *image.Metadata) (*image.Image, error)
- func (s *Session) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) DeleteAll(ctx context.Context, userID string) (bool, error)
- func (s *Session) Destroy(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) DestroyAll(ctx context.Context, userID string) (bool, error)
- func (s *Session) Get(ctx context.Context, id string, condition *request.Condition) (*image.Image, error)
- func (s *Session) List(ctx context.Context, userID string, filter *image.Filter, ...) (image.ImageArray, error)
- func (s *Session) Update(ctx context.Context, id string, condition *request.Condition, ...) (*image.Image, error)
- type Store
- type UpdateInput
- type UpdateOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomContentAttributes ¶
func RandomContentAttributes() *imageStoreStructured.ContentAttributes
func RandomUpdate ¶
func RandomUpdate() *imageStoreStructured.Update
Types ¶
type CreateInput ¶
type CreateOutput ¶
type DeleteAllOutput ¶
type DeleteInput ¶
type DeleteOutput ¶
type DestroyAllOutput ¶
type DestroyInput ¶
type DestroyOutput ¶
type ListInput ¶
type ListInput struct {
UserID string
Filter *image.Filter
Pagination *page.Pagination
}
type ListOutput ¶
type ListOutput struct {
ImageArray image.ImageArray
Error error
}
type Session ¶
type Session struct {
*test.Closer
ListInvocations int
ListInputs []ListInput
ListStub func(ctx context.Context, userID string, filter *image.Filter, pagination *page.Pagination) (image.ImageArray, error)
ListOutputs []ListOutput
ListOutput *ListOutput
CreateInvocations int
CreateInputs []CreateInput
CreateStub func(ctx context.Context, userID string, metadata *image.Metadata) (*image.Image, error)
CreateOutputs []CreateOutput
CreateOutput *CreateOutput
DeleteAllInvocations int
DeleteAllInputs []string
DeleteAllStub func(ctx context.Context, userID string) (bool, error)
DeleteAllOutputs []DeleteAllOutput
DeleteAllOutput *DeleteAllOutput
DestroyAllInvocations int
DestroyAllInputs []string
DestroyAllStub func(ctx context.Context, userID string) (bool, error)
DestroyAllOutputs []DestroyAllOutput
DestroyAllOutput *DestroyAllOutput
GetInvocations int
GetInputs []GetInput
GetStub func(ctx context.Context, id string, condition *request.Condition) (*image.Image, error)
GetOutputs []GetOutput
GetOutput *GetOutput
UpdateInvocations int
UpdateInputs []UpdateInput
UpdateStub func(ctx context.Context, id string, condition *request.Condition, update *imageStoreStructured.Update) (*image.Image, 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
DestroyInvocations int
DestroyInputs []DestroyInput
DestroyStub func(ctx context.Context, id string, condition *request.Condition) (bool, error)
DestroyOutputs []DestroyOutput
DestroyOutput *DestroyOutput
}
func NewSession ¶
func NewSession() *Session
func (*Session) AssertOutputsEmpty ¶
func (s *Session) AssertOutputsEmpty()
func (*Session) DestroyAll ¶
type Store ¶
type Store struct {
NewSessionInvocations int
NewSessionStub func() imageStoreStructured.Session
NewSessionOutputs []imageStoreStructured.Session
NewSessionOutput *imageStoreStructured.Session
}
func (*Store) AssertOutputsEmpty ¶
func (s *Store) AssertOutputsEmpty()
func (*Store) NewSession ¶
func (s *Store) NewSession() imageStoreStructured.Session
type UpdateInput ¶
type UpdateInput struct {
ID string
Condition *request.Condition
Update *imageStoreStructured.Update
}
type UpdateOutput ¶
Click to show internal directories.
Click to hide internal directories.