mock

package
v0.0.0-...-df423d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StubLists

func StubLists(ids ...string) []models.Listable

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 (lh ListHandler) CanonicalPath(
	storageDirFolders path.Elements,
	tenantID string,
) (path.Path, error)

func (*ListHandler) Check

func (lh *ListHandler) Check(t *testing.T, expected []string)

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 (*ListRestoreHandler) GetListsByCollisionKey

func (lh *ListRestoreHandler) GetListsByCollisionKey(ctx context.Context) (map[string]string, error)

func (*ListRestoreHandler) PatchList

func (lh *ListRestoreHandler) PatchList(
	ctx context.Context,
	listID string,
	list models.Listable,
) (models.Listable, error)

func (*ListRestoreHandler) PostList

func (lh *ListRestoreHandler) PostList(
	ctx context.Context,
	listName string,
	storedList models.Listable,
	_ *fault.Bus,
) (models.Listable, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL