Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) GetReceivedShare(ctx context.Context, ref *collaborationv1beta1.ShareReference) (*collaborationv1beta1.ReceivedShare, error)
- func (_m *Manager) GetShare(ctx context.Context, ref *collaborationv1beta1.ShareReference) (*collaborationv1beta1.Share, error)
- func (_m *Manager) ListReceivedShares(ctx context.Context, filters []*collaborationv1beta1.Filter, ...) ([]*collaborationv1beta1.ReceivedShare, error)
- func (_m *Manager) ListShares(ctx context.Context, filters []*collaborationv1beta1.Filter) ([]*collaborationv1beta1.Share, error)
- func (_m *Manager) Share(ctx context.Context, md *providerv1beta1.ResourceInfo, ...) (*collaborationv1beta1.Share, error)
- func (_m *Manager) Unshare(ctx context.Context, ref *collaborationv1beta1.ShareReference) error
- func (_m *Manager) UpdateReceivedShare(ctx context.Context, _a1 *collaborationv1beta1.ReceivedShare, ...) (*collaborationv1beta1.ReceivedShare, error)
- func (_m *Manager) UpdateShare(ctx context.Context, ref *collaborationv1beta1.ShareReference, ...) (*collaborationv1beta1.Share, error)
- type Manager_Expecter
- func (_e *Manager_Expecter) GetReceivedShare(ctx interface{}, ref interface{}) *Manager_GetReceivedShare_Call
- func (_e *Manager_Expecter) GetShare(ctx interface{}, ref interface{}) *Manager_GetShare_Call
- func (_e *Manager_Expecter) ListReceivedShares(ctx interface{}, filters interface{}, forUser interface{}) *Manager_ListReceivedShares_Call
- func (_e *Manager_Expecter) ListShares(ctx interface{}, filters interface{}) *Manager_ListShares_Call
- func (_e *Manager_Expecter) Share(ctx interface{}, md interface{}, g interface{}) *Manager_Share_Call
- func (_e *Manager_Expecter) Unshare(ctx interface{}, ref interface{}) *Manager_Unshare_Call
- func (_e *Manager_Expecter) UpdateReceivedShare(ctx interface{}, _a1 interface{}, fieldMask interface{}, forUser interface{}) *Manager_UpdateReceivedShare_Call
- func (_e *Manager_Expecter) UpdateShare(ctx interface{}, ref interface{}, p interface{}, updated interface{}, ...) *Manager_UpdateShare_Call
- type Manager_GetReceivedShare_Call
- func (_c *Manager_GetReceivedShare_Call) Return(_a0 *collaborationv1beta1.ReceivedShare, _a1 error) *Manager_GetReceivedShare_Call
- func (_c *Manager_GetReceivedShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_GetReceivedShare_Call
- func (_c *Manager_GetReceivedShare_Call) RunAndReturn(...) *Manager_GetReceivedShare_Call
- type Manager_GetShare_Call
- func (_c *Manager_GetShare_Call) Return(_a0 *collaborationv1beta1.Share, _a1 error) *Manager_GetShare_Call
- func (_c *Manager_GetShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_GetShare_Call
- func (_c *Manager_GetShare_Call) RunAndReturn(...) *Manager_GetShare_Call
- type Manager_ListReceivedShares_Call
- func (_c *Manager_ListReceivedShares_Call) Return(_a0 []*collaborationv1beta1.ReceivedShare, _a1 error) *Manager_ListReceivedShares_Call
- func (_c *Manager_ListReceivedShares_Call) Run(run func(ctx context.Context, filters []*collaborationv1beta1.Filter, ...)) *Manager_ListReceivedShares_Call
- func (_c *Manager_ListReceivedShares_Call) RunAndReturn(...) *Manager_ListReceivedShares_Call
- type Manager_ListShares_Call
- func (_c *Manager_ListShares_Call) Return(_a0 []*collaborationv1beta1.Share, _a1 error) *Manager_ListShares_Call
- func (_c *Manager_ListShares_Call) Run(run func(ctx context.Context, filters []*collaborationv1beta1.Filter)) *Manager_ListShares_Call
- func (_c *Manager_ListShares_Call) RunAndReturn(...) *Manager_ListShares_Call
- type Manager_Share_Call
- type Manager_Unshare_Call
- func (_c *Manager_Unshare_Call) Return(_a0 error) *Manager_Unshare_Call
- func (_c *Manager_Unshare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_Unshare_Call
- func (_c *Manager_Unshare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ShareReference) error) *Manager_Unshare_Call
- type Manager_UpdateReceivedShare_Call
- func (_c *Manager_UpdateReceivedShare_Call) Return(_a0 *collaborationv1beta1.ReceivedShare, _a1 error) *Manager_UpdateReceivedShare_Call
- func (_c *Manager_UpdateReceivedShare_Call) Run(run func(ctx context.Context, _a1 *collaborationv1beta1.ReceivedShare, ...)) *Manager_UpdateReceivedShare_Call
- func (_c *Manager_UpdateReceivedShare_Call) RunAndReturn(...) *Manager_UpdateReceivedShare_Call
- type Manager_UpdateShare_Call
- func (_c *Manager_UpdateShare_Call) Return(_a0 *collaborationv1beta1.Share, _a1 error) *Manager_UpdateShare_Call
- func (_c *Manager_UpdateShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference, ...)) *Manager_UpdateShare_Call
- func (_c *Manager_UpdateShare_Call) RunAndReturn(...) *Manager_UpdateShare_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶ added in v2.3.0
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 ¶
func (_m *Manager) GetReceivedShare(ctx context.Context, ref *collaborationv1beta1.ShareReference) (*collaborationv1beta1.ReceivedShare, error)
GetReceivedShare provides a mock function with given fields: ctx, ref
func (*Manager) GetShare ¶
func (_m *Manager) GetShare(ctx context.Context, ref *collaborationv1beta1.ShareReference) (*collaborationv1beta1.Share, error)
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 ¶
func (_m *Manager) Share(ctx context.Context, md *providerv1beta1.ResourceInfo, g *collaborationv1beta1.ShareGrant) (*collaborationv1beta1.Share, error)
Share provides a mock function with given fields: ctx, md, g
func (*Manager) Unshare ¶
func (_m *Manager) Unshare(ctx context.Context, ref *collaborationv1beta1.ShareReference) error
Unshare provides a mock function with given fields: ctx, ref
func (*Manager) UpdateReceivedShare ¶
func (_m *Manager) UpdateReceivedShare(ctx context.Context, _a1 *collaborationv1beta1.ReceivedShare, fieldMask *fieldmaskpb.FieldMask, forUser *userv1beta1.UserId) (*collaborationv1beta1.ReceivedShare, error)
UpdateReceivedShare provides a mock function with given fields: ctx, _a1, fieldMask, forUser
func (*Manager) UpdateShare ¶
func (_m *Manager) UpdateShare(ctx context.Context, ref *collaborationv1beta1.ShareReference, p *collaborationv1beta1.SharePermissions, updated *collaborationv1beta1.Share, fieldMask *fieldmaskpb.FieldMask) (*collaborationv1beta1.Share, error)
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 {
}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 (_c *Manager_GetReceivedShare_Call) Return(_a0 *collaborationv1beta1.ReceivedShare, _a1 error) *Manager_GetReceivedShare_Call
func (*Manager_GetReceivedShare_Call) Run ¶ added in v2.19.6
func (_c *Manager_GetReceivedShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_GetReceivedShare_Call
func (*Manager_GetReceivedShare_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_GetReceivedShare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ShareReference) (*collaborationv1beta1.ReceivedShare, error)) *Manager_GetReceivedShare_Call
type Manager_GetShare_Call ¶ added in v2.19.6
type Manager_GetShare_Call struct {
}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 (_c *Manager_GetShare_Call) Return(_a0 *collaborationv1beta1.Share, _a1 error) *Manager_GetShare_Call
func (*Manager_GetShare_Call) Run ¶ added in v2.19.6
func (_c *Manager_GetShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_GetShare_Call
func (*Manager_GetShare_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_GetShare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ShareReference) (*collaborationv1beta1.Share, error)) *Manager_GetShare_Call
type Manager_ListReceivedShares_Call ¶ added in v2.19.6
type Manager_ListReceivedShares_Call struct {
}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 (_c *Manager_ListReceivedShares_Call) Return(_a0 []*collaborationv1beta1.ReceivedShare, _a1 error) *Manager_ListReceivedShares_Call
func (*Manager_ListReceivedShares_Call) Run ¶ added in v2.19.6
func (_c *Manager_ListReceivedShares_Call) Run(run func(ctx context.Context, filters []*collaborationv1beta1.Filter, forUser *userv1beta1.UserId)) *Manager_ListReceivedShares_Call
func (*Manager_ListReceivedShares_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_ListReceivedShares_Call) RunAndReturn(run func(context.Context, []*collaborationv1beta1.Filter, *userv1beta1.UserId) ([]*collaborationv1beta1.ReceivedShare, error)) *Manager_ListReceivedShares_Call
type Manager_ListShares_Call ¶ added in v2.19.6
type Manager_ListShares_Call struct {
}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 (_c *Manager_ListShares_Call) Return(_a0 []*collaborationv1beta1.Share, _a1 error) *Manager_ListShares_Call
func (*Manager_ListShares_Call) Run ¶ added in v2.19.6
func (_c *Manager_ListShares_Call) Run(run func(ctx context.Context, filters []*collaborationv1beta1.Filter)) *Manager_ListShares_Call
func (*Manager_ListShares_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_ListShares_Call) RunAndReturn(run func(context.Context, []*collaborationv1beta1.Filter) ([]*collaborationv1beta1.Share, error)) *Manager_ListShares_Call
type Manager_Share_Call ¶ added in v2.19.6
type Manager_Share_Call struct {
}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 (_c *Manager_Share_Call) Return(_a0 *collaborationv1beta1.Share, _a1 error) *Manager_Share_Call
func (*Manager_Share_Call) Run ¶ added in v2.19.6
func (_c *Manager_Share_Call) Run(run func(ctx context.Context, md *providerv1beta1.ResourceInfo, g *collaborationv1beta1.ShareGrant)) *Manager_Share_Call
func (*Manager_Share_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_Share_Call) RunAndReturn(run func(context.Context, *providerv1beta1.ResourceInfo, *collaborationv1beta1.ShareGrant) (*collaborationv1beta1.Share, error)) *Manager_Share_Call
type Manager_Unshare_Call ¶ added in v2.19.6
type Manager_Unshare_Call struct {
}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 (_c *Manager_Unshare_Call) Return(_a0 error) *Manager_Unshare_Call
func (*Manager_Unshare_Call) Run ¶ added in v2.19.6
func (_c *Manager_Unshare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference)) *Manager_Unshare_Call
func (*Manager_Unshare_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_Unshare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ShareReference) error) *Manager_Unshare_Call
type Manager_UpdateReceivedShare_Call ¶ added in v2.19.6
type Manager_UpdateReceivedShare_Call struct {
}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 (_c *Manager_UpdateReceivedShare_Call) Return(_a0 *collaborationv1beta1.ReceivedShare, _a1 error) *Manager_UpdateReceivedShare_Call
func (*Manager_UpdateReceivedShare_Call) Run ¶ added in v2.19.6
func (_c *Manager_UpdateReceivedShare_Call) Run(run func(ctx context.Context, _a1 *collaborationv1beta1.ReceivedShare, fieldMask *fieldmaskpb.FieldMask, forUser *userv1beta1.UserId)) *Manager_UpdateReceivedShare_Call
func (*Manager_UpdateReceivedShare_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_UpdateReceivedShare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ReceivedShare, *fieldmaskpb.FieldMask, *userv1beta1.UserId) (*collaborationv1beta1.ReceivedShare, error)) *Manager_UpdateReceivedShare_Call
type Manager_UpdateShare_Call ¶ added in v2.19.6
type Manager_UpdateShare_Call struct {
}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 (_c *Manager_UpdateShare_Call) Return(_a0 *collaborationv1beta1.Share, _a1 error) *Manager_UpdateShare_Call
func (*Manager_UpdateShare_Call) Run ¶ added in v2.19.6
func (_c *Manager_UpdateShare_Call) Run(run func(ctx context.Context, ref *collaborationv1beta1.ShareReference, p *collaborationv1beta1.SharePermissions, updated *collaborationv1beta1.Share, fieldMask *fieldmaskpb.FieldMask)) *Manager_UpdateShare_Call
func (*Manager_UpdateShare_Call) RunAndReturn ¶ added in v2.19.6
func (_c *Manager_UpdateShare_Call) RunAndReturn(run func(context.Context, *collaborationv1beta1.ShareReference, *collaborationv1beta1.SharePermissions, *collaborationv1beta1.Share, *fieldmaskpb.FieldMask) (*collaborationv1beta1.Share, error)) *Manager_UpdateShare_Call