mocks

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t mockConstructorTestingTNewBackend) *Backend

NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Backend) AddMembersToGroup

func (_m *Backend) AddMembersToGroup(ctx context.Context, groupID string, memberID []string) error

AddMembersToGroup provides a mock function with given fields: ctx, groupID, memberID

func (*Backend) CreateGroup

func (_m *Backend) CreateGroup(ctx context.Context, group libregraph.Group) (*libregraph.Group, error)

CreateGroup provides a mock function with given fields: ctx, group

func (*Backend) CreateUser

func (_m *Backend) CreateUser(ctx context.Context, user libregraph.User) (*libregraph.User, error)

CreateUser provides a mock function with given fields: ctx, user

func (*Backend) DeleteGroup

func (_m *Backend) DeleteGroup(ctx context.Context, id string) error

DeleteGroup provides a mock function with given fields: ctx, id

func (*Backend) DeleteUser

func (_m *Backend) DeleteUser(ctx context.Context, nameOrID string) error

DeleteUser provides a mock function with given fields: ctx, nameOrID

func (*Backend) GetGroup

func (_m *Backend) GetGroup(ctx context.Context, nameOrID string, queryParam url.Values) (*libregraph.Group, error)

GetGroup provides a mock function with given fields: ctx, nameOrID, queryParam

func (*Backend) GetGroupMembers

func (_m *Backend) GetGroupMembers(ctx context.Context, id string) ([]*libregraph.User, error)

GetGroupMembers provides a mock function with given fields: ctx, id

func (*Backend) GetGroups

func (_m *Backend) GetGroups(ctx context.Context, queryParam url.Values) ([]*libregraph.Group, error)

GetGroups provides a mock function with given fields: ctx, queryParam

func (*Backend) GetUser

func (_m *Backend) GetUser(ctx context.Context, nameOrID string, queryParam url.Values) (*libregraph.User, error)

GetUser provides a mock function with given fields: ctx, nameOrID, queryParam

func (*Backend) GetUsers

func (_m *Backend) GetUsers(ctx context.Context, queryParam url.Values) ([]*libregraph.User, error)

GetUsers provides a mock function with given fields: ctx, queryParam

func (*Backend) RemoveMemberFromGroup

func (_m *Backend) RemoveMemberFromGroup(ctx context.Context, groupID string, memberID string) error

RemoveMemberFromGroup provides a mock function with given fields: ctx, groupID, memberID

func (*Backend) UpdateUser

func (_m *Backend) UpdateUser(ctx context.Context, nameOrID string, user libregraph.User) (*libregraph.User, error)

UpdateUser provides a mock function with given fields: ctx, nameOrID, user

Jump to

Keyboard shortcuts

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