Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v2.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 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

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

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

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

func (*Manager_Expecter) GetReceivedShare

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

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

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

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

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

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

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

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

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

func (*Manager_GetReceivedShare_Call) Run

type Manager_GetShare_Call

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

func (*Manager_GetShare_Call) Run

type Manager_ListReceivedShares_Call

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

func (*Manager_ListReceivedShares_Call) Run

type Manager_ListShares_Call

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

func (*Manager_ListShares_Call) Run

func (*Manager_ListShares_Call) RunAndReturn

type Manager_Share_Call

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

func (*Manager_Share_Call) Run

type Manager_Unshare_Call

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

func (*Manager_Unshare_Call) Run

func (*Manager_Unshare_Call) RunAndReturn

type Manager_UpdateReceivedShare_Call

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

func (*Manager_UpdateReceivedShare_Call) Run

type Manager_UpdateShare_Call

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

Jump to

Keyboard shortcuts

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