Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) CreatePublicShare(ctx context.Context, u *userv1beta1.User, md *providerv1beta1.ResourceInfo, ...) (*linkv1beta1.PublicShare, error)
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) GetPublicShare(ctx context.Context, u *userv1beta1.User, ...) (*linkv1beta1.PublicShare, error)
- func (_m *Manager) GetPublicShareByToken(ctx context.Context, token string, auth *linkv1beta1.PublicShareAuthentication, ...) (*linkv1beta1.PublicShare, error)
- func (_m *Manager) ListPublicShares(ctx context.Context, u *userv1beta1.User, ...) ([]*linkv1beta1.PublicShare, error)
- func (_m *Manager) RevokePublicShare(ctx context.Context, u *userv1beta1.User, ...) error
- func (_m *Manager) UpdatePublicShare(ctx context.Context, u *userv1beta1.User, ...) (*linkv1beta1.PublicShare, error)
- type Manager_CreatePublicShare_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) CreatePublicShare(ctx interface{}, u interface{}, md interface{}, g interface{}) *Manager_CreatePublicShare_Call
- func (_e *Manager_Expecter) GetPublicShare(ctx interface{}, u interface{}, ref interface{}, sign interface{}) *Manager_GetPublicShare_Call
- func (_e *Manager_Expecter) GetPublicShareByToken(ctx interface{}, token interface{}, auth interface{}, sign interface{}) *Manager_GetPublicShareByToken_Call
- func (_e *Manager_Expecter) ListPublicShares(ctx interface{}, u interface{}, filters interface{}, sign interface{}) *Manager_ListPublicShares_Call
- func (_e *Manager_Expecter) RevokePublicShare(ctx interface{}, u interface{}, ref interface{}) *Manager_RevokePublicShare_Call
- func (_e *Manager_Expecter) UpdatePublicShare(ctx interface{}, u interface{}, req interface{}) *Manager_UpdatePublicShare_Call
- type Manager_GetPublicShareByToken_Call
- func (_c *Manager_GetPublicShareByToken_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_GetPublicShareByToken_Call
- func (_c *Manager_GetPublicShareByToken_Call) Run(...) *Manager_GetPublicShareByToken_Call
- func (_c *Manager_GetPublicShareByToken_Call) RunAndReturn(...) *Manager_GetPublicShareByToken_Call
- type Manager_GetPublicShare_Call
- func (_c *Manager_GetPublicShare_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_GetPublicShare_Call
- func (_c *Manager_GetPublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ...)) *Manager_GetPublicShare_Call
- func (_c *Manager_GetPublicShare_Call) RunAndReturn(...) *Manager_GetPublicShare_Call
- type Manager_ListPublicShares_Call
- func (_c *Manager_ListPublicShares_Call) Return(_a0 []*linkv1beta1.PublicShare, _a1 error) *Manager_ListPublicShares_Call
- func (_c *Manager_ListPublicShares_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ...)) *Manager_ListPublicShares_Call
- func (_c *Manager_ListPublicShares_Call) RunAndReturn(...) *Manager_ListPublicShares_Call
- type Manager_RevokePublicShare_Call
- func (_c *Manager_RevokePublicShare_Call) Return(_a0 error) *Manager_RevokePublicShare_Call
- func (_c *Manager_RevokePublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ...)) *Manager_RevokePublicShare_Call
- func (_c *Manager_RevokePublicShare_Call) RunAndReturn(...) *Manager_RevokePublicShare_Call
- type Manager_UpdatePublicShare_Call
- func (_c *Manager_UpdatePublicShare_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_UpdatePublicShare_Call
- func (_c *Manager_UpdatePublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ...)) *Manager_UpdatePublicShare_Call
- func (_c *Manager_UpdatePublicShare_Call) RunAndReturn(...) *Manager_UpdatePublicShare_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 ¶
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) CreatePublicShare ¶
func (_m *Manager) CreatePublicShare(ctx context.Context, u *userv1beta1.User, md *providerv1beta1.ResourceInfo, g *linkv1beta1.Grant) (*linkv1beta1.PublicShare, error)
CreatePublicShare provides a mock function with given fields: ctx, u, md, g
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) GetPublicShare ¶
func (_m *Manager) GetPublicShare(ctx context.Context, u *userv1beta1.User, ref *linkv1beta1.PublicShareReference, sign bool) (*linkv1beta1.PublicShare, error)
GetPublicShare provides a mock function with given fields: ctx, u, ref, sign
func (*Manager) GetPublicShareByToken ¶
func (_m *Manager) GetPublicShareByToken(ctx context.Context, token string, auth *linkv1beta1.PublicShareAuthentication, sign bool) (*linkv1beta1.PublicShare, error)
GetPublicShareByToken provides a mock function with given fields: ctx, token, auth, sign
func (*Manager) ListPublicShares ¶
func (_m *Manager) ListPublicShares(ctx context.Context, u *userv1beta1.User, filters []*linkv1beta1.ListPublicSharesRequest_Filter, sign bool) ([]*linkv1beta1.PublicShare, error)
ListPublicShares provides a mock function with given fields: ctx, u, filters, sign
func (*Manager) RevokePublicShare ¶
func (_m *Manager) RevokePublicShare(ctx context.Context, u *userv1beta1.User, ref *linkv1beta1.PublicShareReference) error
RevokePublicShare provides a mock function with given fields: ctx, u, ref
func (*Manager) UpdatePublicShare ¶
func (_m *Manager) UpdatePublicShare(ctx context.Context, u *userv1beta1.User, req *linkv1beta1.UpdatePublicShareRequest) (*linkv1beta1.PublicShare, error)
UpdatePublicShare provides a mock function with given fields: ctx, u, req
type Manager_CreatePublicShare_Call ¶
type Manager_CreatePublicShare_Call struct {
}Manager_CreatePublicShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePublicShare'
func (*Manager_CreatePublicShare_Call) Return ¶
func (_c *Manager_CreatePublicShare_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_CreatePublicShare_Call
func (*Manager_CreatePublicShare_Call) Run ¶
func (_c *Manager_CreatePublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, md *providerv1beta1.ResourceInfo, g *linkv1beta1.Grant)) *Manager_CreatePublicShare_Call
func (*Manager_CreatePublicShare_Call) RunAndReturn ¶
func (_c *Manager_CreatePublicShare_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, *providerv1beta1.ResourceInfo, *linkv1beta1.Grant) (*linkv1beta1.PublicShare, error)) *Manager_CreatePublicShare_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) CreatePublicShare ¶
func (_e *Manager_Expecter) CreatePublicShare(ctx interface{}, u interface{}, md interface{}, g interface{}) *Manager_CreatePublicShare_Call
CreatePublicShare is a helper method to define mock.On call
- ctx context.Context
- u *userv1beta1.User
- md *providerv1beta1.ResourceInfo
- g *linkv1beta1.Grant
func (*Manager_Expecter) GetPublicShare ¶
func (_e *Manager_Expecter) GetPublicShare(ctx interface{}, u interface{}, ref interface{}, sign interface{}) *Manager_GetPublicShare_Call
GetPublicShare is a helper method to define mock.On call
- ctx context.Context
- u *userv1beta1.User
- ref *linkv1beta1.PublicShareReference
- sign bool
func (*Manager_Expecter) GetPublicShareByToken ¶
func (_e *Manager_Expecter) GetPublicShareByToken(ctx interface{}, token interface{}, auth interface{}, sign interface{}) *Manager_GetPublicShareByToken_Call
GetPublicShareByToken is a helper method to define mock.On call
- ctx context.Context
- token string
- auth *linkv1beta1.PublicShareAuthentication
- sign bool
func (*Manager_Expecter) ListPublicShares ¶
func (_e *Manager_Expecter) ListPublicShares(ctx interface{}, u interface{}, filters interface{}, sign interface{}) *Manager_ListPublicShares_Call
ListPublicShares is a helper method to define mock.On call
- ctx context.Context
- u *userv1beta1.User
- filters []*linkv1beta1.ListPublicSharesRequest_Filter
- sign bool
func (*Manager_Expecter) RevokePublicShare ¶
func (_e *Manager_Expecter) RevokePublicShare(ctx interface{}, u interface{}, ref interface{}) *Manager_RevokePublicShare_Call
RevokePublicShare is a helper method to define mock.On call
- ctx context.Context
- u *userv1beta1.User
- ref *linkv1beta1.PublicShareReference
func (*Manager_Expecter) UpdatePublicShare ¶
func (_e *Manager_Expecter) UpdatePublicShare(ctx interface{}, u interface{}, req interface{}) *Manager_UpdatePublicShare_Call
UpdatePublicShare is a helper method to define mock.On call
- ctx context.Context
- u *userv1beta1.User
- req *linkv1beta1.UpdatePublicShareRequest
type Manager_GetPublicShareByToken_Call ¶
type Manager_GetPublicShareByToken_Call struct {
}Manager_GetPublicShareByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublicShareByToken'
func (*Manager_GetPublicShareByToken_Call) Return ¶
func (_c *Manager_GetPublicShareByToken_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_GetPublicShareByToken_Call
func (*Manager_GetPublicShareByToken_Call) Run ¶
func (_c *Manager_GetPublicShareByToken_Call) Run(run func(ctx context.Context, token string, auth *linkv1beta1.PublicShareAuthentication, sign bool)) *Manager_GetPublicShareByToken_Call
func (*Manager_GetPublicShareByToken_Call) RunAndReturn ¶
func (_c *Manager_GetPublicShareByToken_Call) RunAndReturn(run func(context.Context, string, *linkv1beta1.PublicShareAuthentication, bool) (*linkv1beta1.PublicShare, error)) *Manager_GetPublicShareByToken_Call
type Manager_GetPublicShare_Call ¶
type Manager_GetPublicShare_Call struct {
}Manager_GetPublicShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublicShare'
func (*Manager_GetPublicShare_Call) Return ¶
func (_c *Manager_GetPublicShare_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_GetPublicShare_Call
func (*Manager_GetPublicShare_Call) Run ¶
func (_c *Manager_GetPublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ref *linkv1beta1.PublicShareReference, sign bool)) *Manager_GetPublicShare_Call
func (*Manager_GetPublicShare_Call) RunAndReturn ¶
func (_c *Manager_GetPublicShare_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, *linkv1beta1.PublicShareReference, bool) (*linkv1beta1.PublicShare, error)) *Manager_GetPublicShare_Call
type Manager_ListPublicShares_Call ¶
type Manager_ListPublicShares_Call struct {
}Manager_ListPublicShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPublicShares'
func (*Manager_ListPublicShares_Call) Return ¶
func (_c *Manager_ListPublicShares_Call) Return(_a0 []*linkv1beta1.PublicShare, _a1 error) *Manager_ListPublicShares_Call
func (*Manager_ListPublicShares_Call) Run ¶
func (_c *Manager_ListPublicShares_Call) Run(run func(ctx context.Context, u *userv1beta1.User, filters []*linkv1beta1.ListPublicSharesRequest_Filter, sign bool)) *Manager_ListPublicShares_Call
func (*Manager_ListPublicShares_Call) RunAndReturn ¶
func (_c *Manager_ListPublicShares_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, []*linkv1beta1.ListPublicSharesRequest_Filter, bool) ([]*linkv1beta1.PublicShare, error)) *Manager_ListPublicShares_Call
type Manager_RevokePublicShare_Call ¶
type Manager_RevokePublicShare_Call struct {
}Manager_RevokePublicShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokePublicShare'
func (*Manager_RevokePublicShare_Call) Return ¶
func (_c *Manager_RevokePublicShare_Call) Return(_a0 error) *Manager_RevokePublicShare_Call
func (*Manager_RevokePublicShare_Call) Run ¶
func (_c *Manager_RevokePublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, ref *linkv1beta1.PublicShareReference)) *Manager_RevokePublicShare_Call
func (*Manager_RevokePublicShare_Call) RunAndReturn ¶
func (_c *Manager_RevokePublicShare_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, *linkv1beta1.PublicShareReference) error) *Manager_RevokePublicShare_Call
type Manager_UpdatePublicShare_Call ¶
type Manager_UpdatePublicShare_Call struct {
}Manager_UpdatePublicShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePublicShare'
func (*Manager_UpdatePublicShare_Call) Return ¶
func (_c *Manager_UpdatePublicShare_Call) Return(_a0 *linkv1beta1.PublicShare, _a1 error) *Manager_UpdatePublicShare_Call
func (*Manager_UpdatePublicShare_Call) Run ¶
func (_c *Manager_UpdatePublicShare_Call) Run(run func(ctx context.Context, u *userv1beta1.User, req *linkv1beta1.UpdatePublicShareRequest)) *Manager_UpdatePublicShare_Call
func (*Manager_UpdatePublicShare_Call) RunAndReturn ¶
func (_c *Manager_UpdatePublicShare_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, *linkv1beta1.UpdatePublicShareRequest) (*linkv1beta1.PublicShare, error)) *Manager_UpdatePublicShare_Call