mocks

package
v2.52.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) CreatePublicShare

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

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) GetPublicShare

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

UpdatePublicShare provides a mock function with given fields: ctx, u, req

type Manager_CreatePublicShare_Call

type Manager_CreatePublicShare_Call struct {
	*mock.Call
}

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 (*Manager_CreatePublicShare_Call) Run

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 {
	*mock.Call
}

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 (*Manager_GetPublicShareByToken_Call) Run

type Manager_GetPublicShare_Call

type Manager_GetPublicShare_Call struct {
	*mock.Call
}

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 (*Manager_GetPublicShare_Call) Run

type Manager_ListPublicShares_Call

type Manager_ListPublicShares_Call struct {
	*mock.Call
}

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 (*Manager_ListPublicShares_Call) Run

type Manager_RevokePublicShare_Call

type Manager_RevokePublicShare_Call struct {
	*mock.Call
}

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 (*Manager_RevokePublicShare_Call) Run

type Manager_UpdatePublicShare_Call

type Manager_UpdatePublicShare_Call struct {
	*mock.Call
}

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 (*Manager_UpdatePublicShare_Call) Run

Jump to

Keyboard shortcuts

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