Documentation ¶
Index ¶
- type Backend
- func (_m *Backend) AddMembersToGroup(ctx context.Context, groupID string, memberID []string) error
- func (_m *Backend) CreateGroup(ctx context.Context, group libregraph.Group) (*libregraph.Group, error)
- func (_m *Backend) CreateUser(ctx context.Context, user libregraph.User) (*libregraph.User, error)
- func (_m *Backend) DeleteGroup(ctx context.Context, id string) error
- func (_m *Backend) DeleteUser(ctx context.Context, nameOrID string) error
- func (_m *Backend) GetGroup(ctx context.Context, nameOrID string, queryParam url.Values) (*libregraph.Group, error)
- func (_m *Backend) GetGroupMembers(ctx context.Context, id string) ([]*libregraph.User, error)
- func (_m *Backend) GetGroups(ctx context.Context, queryParam url.Values) ([]*libregraph.Group, error)
- func (_m *Backend) GetUser(ctx context.Context, nameOrID string, queryParam url.Values) (*libregraph.User, error)
- func (_m *Backend) GetUsers(ctx context.Context, queryParam url.Values) ([]*libregraph.User, error)
- func (_m *Backend) RemoveMemberFromGroup(ctx context.Context, groupID string, memberID string) error
- func (_m *Backend) UpdateUser(ctx context.Context, nameOrID string, user libregraph.User) (*libregraph.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
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 ¶
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 ¶
DeleteGroup provides a mock function with given fields: ctx, id
func (*Backend) DeleteUser ¶
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 ¶
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) 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