Documentation ¶
Index ¶
- type Manager
- 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)
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
func NewManager(t mockConstructorTestingTNewManager) *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.
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) ([]*collaborationv1beta1.ReceivedShare, error)
ListReceivedShares provides a mock function with given fields: ctx, filters
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) (*collaborationv1beta1.ReceivedShare, error)
UpdateReceivedShare provides a mock function with given fields: ctx, _a1, fieldMask
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