Documentation
¶
Index ¶
- func StubLists(ids ...string) []models.Listable
- type ListHandler
- func (lh ListHandler) CanonicalPath(storageDirFolders path.Elements, tenantID string) (path.Path, error)
- func (lh *ListHandler) Check(t *testing.T, expected []string)
- func (lh ListHandler) GetItemByID(ctx context.Context, itemID string) (models.Listable, *details.SharePointInfo, error)
- func (lh ListHandler) GetItems(context.Context, api.CallConfig) ([]models.Listable, error)
- type ListRestoreHandler
- func (lh *ListRestoreHandler) DeleteList(_ context.Context, _ string) error
- func (lh *ListRestoreHandler) GetList(ctx context.Context, listID string) (models.Listable, *details.SharePointInfo, error)
- func (lh *ListRestoreHandler) GetListsByCollisionKey(ctx context.Context) (map[string]string, error)
- func (lh *ListRestoreHandler) PatchList(ctx context.Context, listID string, list models.Listable) (models.Listable, error)
- func (lh *ListRestoreHandler) PostList(ctx context.Context, listName string, storedList models.Listable, _ *fault.Bus) (models.Listable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListHandler ¶
type ListHandler struct {
// contains filtered or unexported fields
}
func NewListHandler ¶
func NewListHandler(lists []models.Listable, protectedResource string, err error) ListHandler
func (ListHandler) CanonicalPath ¶
func (ListHandler) GetItemByID ¶
func (lh ListHandler) GetItemByID( ctx context.Context, itemID string, ) (models.Listable, *details.SharePointInfo, error)
func (ListHandler) GetItems ¶
func (lh ListHandler) GetItems( context.Context, api.CallConfig, ) ([]models.Listable, error)
type ListRestoreHandler ¶
type ListRestoreHandler struct {
// contains filtered or unexported fields
}
func NewListRestoreHandler ¶
func NewListRestoreHandler(deleteListErr error, postListErr, patchListErr error) *ListRestoreHandler
func (*ListRestoreHandler) DeleteList ¶
func (lh *ListRestoreHandler) DeleteList(_ context.Context, _ string) error
func (*ListRestoreHandler) GetList ¶
func (lh *ListRestoreHandler) GetList( ctx context.Context, listID string, ) (models.Listable, *details.SharePointInfo, error)
func (*ListRestoreHandler) GetListsByCollisionKey ¶
Click to show internal directories.
Click to hide internal directories.