Documentation ¶
Index ¶
- type FakeFolderStore
- func (_m *FakeFolderStore) GetFolderByID(ctx context.Context, orgID int64, id int64) (*folder.Folder, error)
- func (_m *FakeFolderStore) GetFolderByTitle(ctx context.Context, orgID int64, title string) (*folder.Folder, error)
- func (_m *FakeFolderStore) GetFolderByUID(ctx context.Context, orgID int64, uid string) (*folder.Folder, error)
- func (_m *FakeFolderStore) GetFolders(ctx context.Context, orgID int64, uids []string) (map[string]*folder.Folder, error)
- type FakeService
- func (s *FakeService) Create(ctx context.Context, cmd *folder.CreateFolderCommand) (*folder.Folder, error)
- func (s *FakeService) Delete(ctx context.Context, cmd *folder.DeleteFolderCommand) error
- func (s *FakeService) Get(ctx context.Context, cmd *folder.GetFolderQuery) (*folder.Folder, error)
- func (s *FakeService) GetChildren(ctx context.Context, cmd *folder.GetChildrenQuery) ([]*folder.Folder, error)
- func (s *FakeService) GetDescendantCounts(ctx context.Context, cmd *folder.GetDescendantCountsQuery) (folder.DescendantCounts, error)
- func (s *FakeService) GetParents(ctx context.Context, q folder.GetParentsQuery) ([]*folder.Folder, error)
- func (s *FakeService) MakeUserAdmin(ctx context.Context, orgID int64, userID, folderID int64, ...) error
- func (s *FakeService) Move(ctx context.Context, cmd *folder.MoveFolderCommand) (*folder.Folder, error)
- func (s *FakeService) RegisterService(service folder.RegistryService) error
- func (s *FakeService) Update(ctx context.Context, cmd *folder.UpdateFolderCommand) (*folder.Folder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFolderStore ¶
FakeFolderStore is an autogenerated mock type for the FolderStore type
func NewFakeFolderStore ¶
func NewFakeFolderStore(t interface { mock.TestingT Cleanup(func()) }) *FakeFolderStore
NewFakeFolderStore creates a new instance of FakeFolderStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FakeFolderStore) GetFolderByID ¶
func (_m *FakeFolderStore) GetFolderByID(ctx context.Context, orgID int64, id int64) (*folder.Folder, error)
GetFolderByID provides a mock function with given fields: ctx, orgID, id
func (*FakeFolderStore) GetFolderByTitle ¶
func (_m *FakeFolderStore) GetFolderByTitle(ctx context.Context, orgID int64, title string) (*folder.Folder, error)
GetFolderByTitle provides a mock function with given fields: ctx, orgID, title
func (*FakeFolderStore) GetFolderByUID ¶
func (_m *FakeFolderStore) GetFolderByUID(ctx context.Context, orgID int64, uid string) (*folder.Folder, error)
GetFolderByUID provides a mock function with given fields: ctx, orgID, uid
type FakeService ¶
type FakeService struct { ExpectedFolders []*folder.Folder ExpectedFolder *folder.Folder ExpectedError error ExpectedDescendantCounts map[string]int64 }
func NewFakeService ¶
func NewFakeService() *FakeService
func (*FakeService) Create ¶
func (s *FakeService) Create(ctx context.Context, cmd *folder.CreateFolderCommand) (*folder.Folder, error)
func (*FakeService) Delete ¶
func (s *FakeService) Delete(ctx context.Context, cmd *folder.DeleteFolderCommand) error
func (*FakeService) Get ¶
func (s *FakeService) Get(ctx context.Context, cmd *folder.GetFolderQuery) (*folder.Folder, error)
func (*FakeService) GetChildren ¶
func (s *FakeService) GetChildren(ctx context.Context, cmd *folder.GetChildrenQuery) ([]*folder.Folder, error)
func (*FakeService) GetDescendantCounts ¶
func (s *FakeService) GetDescendantCounts(ctx context.Context, cmd *folder.GetDescendantCountsQuery) (folder.DescendantCounts, error)
func (*FakeService) GetParents ¶
func (s *FakeService) GetParents(ctx context.Context, q folder.GetParentsQuery) ([]*folder.Folder, error)
func (*FakeService) MakeUserAdmin ¶
func (*FakeService) Move ¶
func (s *FakeService) Move(ctx context.Context, cmd *folder.MoveFolderCommand) (*folder.Folder, error)
func (*FakeService) RegisterService ¶
func (s *FakeService) RegisterService(service folder.RegistryService) error
func (*FakeService) Update ¶
func (s *FakeService) Update(ctx context.Context, cmd *folder.UpdateFolderCommand) (*folder.Folder, error)
Click to show internal directories.
Click to hide internal directories.