mocks

package
v2.24.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager added in v2.3.0

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) EXPECT added in v2.19.6

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) GetReceivedShare

GetReceivedShare provides a mock function with given fields: ctx, ref

func (*Manager) GetShare

GetShare provides a mock function with given fields: ctx, ref

func (*Manager) ListReceivedShares

func (_m *Manager) ListReceivedShares(ctx context.Context, filters []*collaborationv1beta1.Filter, forUser *userv1beta1.UserId) ([]*collaborationv1beta1.ReceivedShare, error)

ListReceivedShares provides a mock function with given fields: ctx, filters, forUser

func (*Manager) ListShares

func (_m *Manager) ListShares(ctx context.Context, filters []*collaborationv1beta1.Filter) ([]*collaborationv1beta1.Share, error)

ListShares provides a mock function with given fields: ctx, filters

func (*Manager) Share

Share provides a mock function with given fields: ctx, md, g

func (*Manager) Unshare

Unshare provides a mock function with given fields: ctx, ref

func (*Manager) UpdateReceivedShare

UpdateReceivedShare provides a mock function with given fields: ctx, _a1, fieldMask, forUser

func (*Manager) UpdateShare

UpdateShare provides a mock function with given fields: ctx, ref, p, updated, fieldMask

type Manager_Expecter added in v2.19.6

type Manager_Expecter struct {
	// contains filtered or unexported fields
}

func (*Manager_Expecter) GetReceivedShare added in v2.19.6

func (_e *Manager_Expecter) GetReceivedShare(ctx interface{}, ref interface{}) *Manager_GetReceivedShare_Call

GetReceivedShare is a helper method to define mock.On call

  • ctx context.Context
  • ref *collaborationv1beta1.ShareReference

func (*Manager_Expecter) GetShare added in v2.19.6

func (_e *Manager_Expecter) GetShare(ctx interface{}, ref interface{}) *Manager_GetShare_Call

GetShare is a helper method to define mock.On call

  • ctx context.Context
  • ref *collaborationv1beta1.ShareReference

func (*Manager_Expecter) ListReceivedShares added in v2.19.6

func (_e *Manager_Expecter) ListReceivedShares(ctx interface{}, filters interface{}, forUser interface{}) *Manager_ListReceivedShares_Call

ListReceivedShares is a helper method to define mock.On call

  • ctx context.Context
  • filters []*collaborationv1beta1.Filter
  • forUser *userv1beta1.UserId

func (*Manager_Expecter) ListShares added in v2.19.6

func (_e *Manager_Expecter) ListShares(ctx interface{}, filters interface{}) *Manager_ListShares_Call

ListShares is a helper method to define mock.On call

  • ctx context.Context
  • filters []*collaborationv1beta1.Filter

func (*Manager_Expecter) Share added in v2.19.6

func (_e *Manager_Expecter) Share(ctx interface{}, md interface{}, g interface{}) *Manager_Share_Call

Share is a helper method to define mock.On call

  • ctx context.Context
  • md *providerv1beta1.ResourceInfo
  • g *collaborationv1beta1.ShareGrant

func (*Manager_Expecter) Unshare added in v2.19.6

func (_e *Manager_Expecter) Unshare(ctx interface{}, ref interface{}) *Manager_Unshare_Call

Unshare is a helper method to define mock.On call

  • ctx context.Context
  • ref *collaborationv1beta1.ShareReference

func (*Manager_Expecter) UpdateReceivedShare added in v2.19.6

func (_e *Manager_Expecter) UpdateReceivedShare(ctx interface{}, _a1 interface{}, fieldMask interface{}, forUser interface{}) *Manager_UpdateReceivedShare_Call

UpdateReceivedShare is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *collaborationv1beta1.ReceivedShare
  • fieldMask *fieldmaskpb.FieldMask
  • forUser *userv1beta1.UserId

func (*Manager_Expecter) UpdateShare added in v2.19.6

func (_e *Manager_Expecter) UpdateShare(ctx interface{}, ref interface{}, p interface{}, updated interface{}, fieldMask interface{}) *Manager_UpdateShare_Call

UpdateShare is a helper method to define mock.On call

  • ctx context.Context
  • ref *collaborationv1beta1.ShareReference
  • p *collaborationv1beta1.SharePermissions
  • updated *collaborationv1beta1.Share
  • fieldMask *fieldmaskpb.FieldMask

type Manager_GetReceivedShare_Call added in v2.19.6

type Manager_GetReceivedShare_Call struct {
	*mock.Call
}

Manager_GetReceivedShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReceivedShare'

func (*Manager_GetReceivedShare_Call) Return added in v2.19.6

func (*Manager_GetReceivedShare_Call) Run added in v2.19.6

func (*Manager_GetReceivedShare_Call) RunAndReturn added in v2.19.6

type Manager_GetShare_Call added in v2.19.6

type Manager_GetShare_Call struct {
	*mock.Call
}

Manager_GetShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShare'

func (*Manager_GetShare_Call) Return added in v2.19.6

func (*Manager_GetShare_Call) Run added in v2.19.6

func (*Manager_GetShare_Call) RunAndReturn added in v2.19.6

type Manager_ListReceivedShares_Call added in v2.19.6

type Manager_ListReceivedShares_Call struct {
	*mock.Call
}

Manager_ListReceivedShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReceivedShares'

func (*Manager_ListReceivedShares_Call) Return added in v2.19.6

func (*Manager_ListReceivedShares_Call) Run added in v2.19.6

func (*Manager_ListReceivedShares_Call) RunAndReturn added in v2.19.6

type Manager_ListShares_Call added in v2.19.6

type Manager_ListShares_Call struct {
	*mock.Call
}

Manager_ListShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListShares'

func (*Manager_ListShares_Call) Return added in v2.19.6

func (*Manager_ListShares_Call) Run added in v2.19.6

func (*Manager_ListShares_Call) RunAndReturn added in v2.19.6

type Manager_Share_Call added in v2.19.6

type Manager_Share_Call struct {
	*mock.Call
}

Manager_Share_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Share'

func (*Manager_Share_Call) Return added in v2.19.6

func (*Manager_Share_Call) Run added in v2.19.6

func (*Manager_Share_Call) RunAndReturn added in v2.19.6

type Manager_Unshare_Call added in v2.19.6

type Manager_Unshare_Call struct {
	*mock.Call
}

Manager_Unshare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unshare'

func (*Manager_Unshare_Call) Return added in v2.19.6

func (*Manager_Unshare_Call) Run added in v2.19.6

func (*Manager_Unshare_Call) RunAndReturn added in v2.19.6

type Manager_UpdateReceivedShare_Call added in v2.19.6

type Manager_UpdateReceivedShare_Call struct {
	*mock.Call
}

Manager_UpdateReceivedShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateReceivedShare'

func (*Manager_UpdateReceivedShare_Call) Return added in v2.19.6

func (*Manager_UpdateReceivedShare_Call) Run added in v2.19.6

type Manager_UpdateShare_Call added in v2.19.6

type Manager_UpdateShare_Call struct {
	*mock.Call
}

Manager_UpdateShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateShare'

func (*Manager_UpdateShare_Call) Return added in v2.19.6

func (*Manager_UpdateShare_Call) Run added in v2.19.6

Jump to

Keyboard shortcuts

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