mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 13 Imported by: ? 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 BaseGraphProvider

type BaseGraphProvider struct {
	mock.Mock
}

BaseGraphProvider is an autogenerated mock type for the BaseGraphProvider type

func NewBaseGraphProvider

func NewBaseGraphProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseGraphProvider

NewBaseGraphProvider creates a new instance of BaseGraphProvider. 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 (*BaseGraphProvider) CS3ReceivedOCMSharesToDriveItems

func (_m *BaseGraphProvider) CS3ReceivedOCMSharesToDriveItems(ctx context.Context, receivedOCMShares []*ocmv1beta1.ReceivedShare) ([]libregraph.DriveItem, error)

CS3ReceivedOCMSharesToDriveItems provides a mock function with given fields: ctx, receivedOCMShares

func (*BaseGraphProvider) CS3ReceivedSharesToDriveItems

func (_m *BaseGraphProvider) CS3ReceivedSharesToDriveItems(ctx context.Context, receivedShares []*collaborationv1beta1.ReceivedShare) ([]libregraph.DriveItem, error)

CS3ReceivedSharesToDriveItems provides a mock function with given fields: ctx, receivedShares

func (*BaseGraphProvider) EXPECT

type BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call

type BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call struct {
	*mock.Call
}

BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CS3ReceivedOCMSharesToDriveItems'

func (*BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call) Return

func (*BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call) Run

type BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call

type BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call struct {
	*mock.Call
}

BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CS3ReceivedSharesToDriveItems'

func (*BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call) Return

func (*BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call) Run

type BaseGraphProvider_Expecter

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

func (*BaseGraphProvider_Expecter) CS3ReceivedOCMSharesToDriveItems

func (_e *BaseGraphProvider_Expecter) CS3ReceivedOCMSharesToDriveItems(ctx interface{}, receivedOCMShares interface{}) *BaseGraphProvider_CS3ReceivedOCMSharesToDriveItems_Call

CS3ReceivedOCMSharesToDriveItems is a helper method to define mock.On call

  • ctx context.Context
  • receivedOCMShares []*ocmv1beta1.ReceivedShare

func (*BaseGraphProvider_Expecter) CS3ReceivedSharesToDriveItems

func (_e *BaseGraphProvider_Expecter) CS3ReceivedSharesToDriveItems(ctx interface{}, receivedShares interface{}) *BaseGraphProvider_CS3ReceivedSharesToDriveItems_Call

CS3ReceivedSharesToDriveItems is a helper method to define mock.On call

  • ctx context.Context
  • receivedShares []*collaborationv1beta1.ReceivedShare

type DriveItemPermissionsProvider

type DriveItemPermissionsProvider struct {
	mock.Mock
}

DriveItemPermissionsProvider is an autogenerated mock type for the DriveItemPermissionsProvider type

func NewDriveItemPermissionsProvider

func NewDriveItemPermissionsProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *DriveItemPermissionsProvider

NewDriveItemPermissionsProvider creates a new instance of DriveItemPermissionsProvider. 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.

CreateLink provides a mock function with given fields: ctx, driveItemID, createLink

CreateSpaceRootLink provides a mock function with given fields: ctx, driveID, createLink

func (*DriveItemPermissionsProvider) DeletePermission

func (_m *DriveItemPermissionsProvider) DeletePermission(ctx context.Context, itemID *providerv1beta1.ResourceId, permissionID string) error

DeletePermission provides a mock function with given fields: ctx, itemID, permissionID

func (*DriveItemPermissionsProvider) DeleteSpaceRootPermission

func (_m *DriveItemPermissionsProvider) DeleteSpaceRootPermission(ctx context.Context, driveID *providerv1beta1.ResourceId, permissionID string) error

DeleteSpaceRootPermission provides a mock function with given fields: ctx, driveID, permissionID

func (*DriveItemPermissionsProvider) EXPECT

func (*DriveItemPermissionsProvider) Invite

Invite provides a mock function with given fields: ctx, resourceId, invite

func (*DriveItemPermissionsProvider) ListPermissions

func (_m *DriveItemPermissionsProvider) ListPermissions(ctx context.Context, itemID *providerv1beta1.ResourceId, listFederatedRoles bool, selectRoles bool) (libregraph.CollectionOfPermissionsWithAllowedValues, error)

ListPermissions provides a mock function with given fields: ctx, itemID, listFederatedRoles, selectRoles

func (*DriveItemPermissionsProvider) ListSpaceRootPermissions

ListSpaceRootPermissions provides a mock function with given fields: ctx, driveID

func (*DriveItemPermissionsProvider) SetPublicLinkPassword

func (_m *DriveItemPermissionsProvider) SetPublicLinkPassword(ctx context.Context, driveItemID *providerv1beta1.ResourceId, permissionID string, password string) (libregraph.Permission, error)

SetPublicLinkPassword provides a mock function with given fields: ctx, driveItemID, permissionID, password

func (*DriveItemPermissionsProvider) SetPublicLinkPasswordOnSpaceRoot

func (_m *DriveItemPermissionsProvider) SetPublicLinkPasswordOnSpaceRoot(ctx context.Context, driveID *providerv1beta1.ResourceId, permissionID string, password string) (libregraph.Permission, error)

SetPublicLinkPasswordOnSpaceRoot provides a mock function with given fields: ctx, driveID, permissionID, password

func (*DriveItemPermissionsProvider) SpaceRootInvite

SpaceRootInvite provides a mock function with given fields: ctx, driveID, invite

func (*DriveItemPermissionsProvider) UpdatePermission

func (_m *DriveItemPermissionsProvider) UpdatePermission(ctx context.Context, itemID *providerv1beta1.ResourceId, permissionID string, newPermission libregraph.Permission) (libregraph.Permission, error)

UpdatePermission provides a mock function with given fields: ctx, itemID, permissionID, newPermission

func (*DriveItemPermissionsProvider) UpdateSpaceRootPermission

func (_m *DriveItemPermissionsProvider) UpdateSpaceRootPermission(ctx context.Context, driveID *providerv1beta1.ResourceId, permissionID string, newPermission libregraph.Permission) (libregraph.Permission, error)

UpdateSpaceRootPermission provides a mock function with given fields: ctx, driveID, permissionID, newPermission

type DriveItemPermissionsProvider_CreateLink_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_CreateLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLink'

type DriveItemPermissionsProvider_CreateSpaceRootLink_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_CreateSpaceRootLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSpaceRootLink'

type DriveItemPermissionsProvider_DeletePermission_Call

type DriveItemPermissionsProvider_DeletePermission_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_DeletePermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePermission'

func (*DriveItemPermissionsProvider_DeletePermission_Call) Return

func (*DriveItemPermissionsProvider_DeletePermission_Call) Run

type DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call

type DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSpaceRootPermission'

func (*DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call) Return

func (*DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call) Run

type DriveItemPermissionsProvider_Expecter

type DriveItemPermissionsProvider_Expecter struct {
	// contains filtered or unexported fields
}
func (_e *DriveItemPermissionsProvider_Expecter) CreateLink(ctx interface{}, driveItemID interface{}, createLink interface{}) *DriveItemPermissionsProvider_CreateLink_Call

CreateLink is a helper method to define mock.On call

  • ctx context.Context
  • driveItemID *providerv1beta1.ResourceId
  • createLink libregraph.DriveItemCreateLink
func (_e *DriveItemPermissionsProvider_Expecter) CreateSpaceRootLink(ctx interface{}, driveID interface{}, createLink interface{}) *DriveItemPermissionsProvider_CreateSpaceRootLink_Call

CreateSpaceRootLink is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId
  • createLink libregraph.DriveItemCreateLink

func (*DriveItemPermissionsProvider_Expecter) DeletePermission

func (_e *DriveItemPermissionsProvider_Expecter) DeletePermission(ctx interface{}, itemID interface{}, permissionID interface{}) *DriveItemPermissionsProvider_DeletePermission_Call

DeletePermission is a helper method to define mock.On call

  • ctx context.Context
  • itemID *providerv1beta1.ResourceId
  • permissionID string

func (*DriveItemPermissionsProvider_Expecter) DeleteSpaceRootPermission

func (_e *DriveItemPermissionsProvider_Expecter) DeleteSpaceRootPermission(ctx interface{}, driveID interface{}, permissionID interface{}) *DriveItemPermissionsProvider_DeleteSpaceRootPermission_Call

DeleteSpaceRootPermission is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId
  • permissionID string

func (*DriveItemPermissionsProvider_Expecter) Invite

func (_e *DriveItemPermissionsProvider_Expecter) Invite(ctx interface{}, resourceId interface{}, invite interface{}) *DriveItemPermissionsProvider_Invite_Call

Invite is a helper method to define mock.On call

  • ctx context.Context
  • resourceId *providerv1beta1.ResourceId
  • invite libregraph.DriveItemInvite

func (*DriveItemPermissionsProvider_Expecter) ListPermissions

func (_e *DriveItemPermissionsProvider_Expecter) ListPermissions(ctx interface{}, itemID interface{}, listFederatedRoles interface{}, selectRoles interface{}) *DriveItemPermissionsProvider_ListPermissions_Call

ListPermissions is a helper method to define mock.On call

  • ctx context.Context
  • itemID *providerv1beta1.ResourceId
  • listFederatedRoles bool
  • selectRoles bool

func (*DriveItemPermissionsProvider_Expecter) ListSpaceRootPermissions

func (_e *DriveItemPermissionsProvider_Expecter) ListSpaceRootPermissions(ctx interface{}, driveID interface{}) *DriveItemPermissionsProvider_ListSpaceRootPermissions_Call

ListSpaceRootPermissions is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId

func (*DriveItemPermissionsProvider_Expecter) SetPublicLinkPassword

func (_e *DriveItemPermissionsProvider_Expecter) SetPublicLinkPassword(ctx interface{}, driveItemID interface{}, permissionID interface{}, password interface{}) *DriveItemPermissionsProvider_SetPublicLinkPassword_Call

SetPublicLinkPassword is a helper method to define mock.On call

  • ctx context.Context
  • driveItemID *providerv1beta1.ResourceId
  • permissionID string
  • password string

func (*DriveItemPermissionsProvider_Expecter) SetPublicLinkPasswordOnSpaceRoot

func (_e *DriveItemPermissionsProvider_Expecter) SetPublicLinkPasswordOnSpaceRoot(ctx interface{}, driveID interface{}, permissionID interface{}, password interface{}) *DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call

SetPublicLinkPasswordOnSpaceRoot is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId
  • permissionID string
  • password string

func (*DriveItemPermissionsProvider_Expecter) SpaceRootInvite

func (_e *DriveItemPermissionsProvider_Expecter) SpaceRootInvite(ctx interface{}, driveID interface{}, invite interface{}) *DriveItemPermissionsProvider_SpaceRootInvite_Call

SpaceRootInvite is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId
  • invite libregraph.DriveItemInvite

func (*DriveItemPermissionsProvider_Expecter) UpdatePermission

func (_e *DriveItemPermissionsProvider_Expecter) UpdatePermission(ctx interface{}, itemID interface{}, permissionID interface{}, newPermission interface{}) *DriveItemPermissionsProvider_UpdatePermission_Call

UpdatePermission is a helper method to define mock.On call

  • ctx context.Context
  • itemID *providerv1beta1.ResourceId
  • permissionID string
  • newPermission libregraph.Permission

func (*DriveItemPermissionsProvider_Expecter) UpdateSpaceRootPermission

func (_e *DriveItemPermissionsProvider_Expecter) UpdateSpaceRootPermission(ctx interface{}, driveID interface{}, permissionID interface{}, newPermission interface{}) *DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call

UpdateSpaceRootPermission is a helper method to define mock.On call

  • ctx context.Context
  • driveID *providerv1beta1.ResourceId
  • permissionID string
  • newPermission libregraph.Permission

type DriveItemPermissionsProvider_Invite_Call

type DriveItemPermissionsProvider_Invite_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_Invite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invite'

func (*DriveItemPermissionsProvider_Invite_Call) Return

func (*DriveItemPermissionsProvider_Invite_Call) Run

type DriveItemPermissionsProvider_ListPermissions_Call

type DriveItemPermissionsProvider_ListPermissions_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_ListPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPermissions'

func (*DriveItemPermissionsProvider_ListPermissions_Call) Run

type DriveItemPermissionsProvider_ListSpaceRootPermissions_Call

type DriveItemPermissionsProvider_ListSpaceRootPermissions_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_ListSpaceRootPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSpaceRootPermissions'

func (*DriveItemPermissionsProvider_ListSpaceRootPermissions_Call) Run

type DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call

type DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPublicLinkPasswordOnSpaceRoot'

func (*DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call) Return

func (*DriveItemPermissionsProvider_SetPublicLinkPasswordOnSpaceRoot_Call) Run

type DriveItemPermissionsProvider_SetPublicLinkPassword_Call

type DriveItemPermissionsProvider_SetPublicLinkPassword_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_SetPublicLinkPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPublicLinkPassword'

func (*DriveItemPermissionsProvider_SetPublicLinkPassword_Call) Return

func (*DriveItemPermissionsProvider_SetPublicLinkPassword_Call) Run

type DriveItemPermissionsProvider_SpaceRootInvite_Call

type DriveItemPermissionsProvider_SpaceRootInvite_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_SpaceRootInvite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpaceRootInvite'

func (*DriveItemPermissionsProvider_SpaceRootInvite_Call) Return

func (*DriveItemPermissionsProvider_SpaceRootInvite_Call) Run

type DriveItemPermissionsProvider_UpdatePermission_Call

type DriveItemPermissionsProvider_UpdatePermission_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_UpdatePermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePermission'

func (*DriveItemPermissionsProvider_UpdatePermission_Call) Return

func (*DriveItemPermissionsProvider_UpdatePermission_Call) Run

type DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call

type DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call struct {
	*mock.Call
}

DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSpaceRootPermission'

func (*DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call) Return

func (*DriveItemPermissionsProvider_UpdateSpaceRootPermission_Call) Run

type DrivesDriveItemProvider

type DrivesDriveItemProvider struct {
	mock.Mock
}

DrivesDriveItemProvider is an autogenerated mock type for the DrivesDriveItemProvider type

func NewDrivesDriveItemProvider

func NewDrivesDriveItemProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *DrivesDriveItemProvider

NewDrivesDriveItemProvider creates a new instance of DrivesDriveItemProvider. 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 (*DrivesDriveItemProvider) EXPECT

func (*DrivesDriveItemProvider) GetShare

GetShare provides a mock function with given fields: ctx, shareID

func (*DrivesDriveItemProvider) GetSharesForResource

GetSharesForResource provides a mock function with given fields: ctx, resourceID, filters

func (*DrivesDriveItemProvider) MountOCMShare

MountOCMShare provides a mock function with given fields: ctx, resourceID

func (*DrivesDriveItemProvider) MountShare

MountShare provides a mock function with given fields: ctx, resourceID, name

func (*DrivesDriveItemProvider) UnmountShare

func (_m *DrivesDriveItemProvider) UnmountShare(ctx context.Context, shareID *collaborationv1beta1.ShareId) error

UnmountShare provides a mock function with given fields: ctx, shareID

func (*DrivesDriveItemProvider) UpdateShares

UpdateShares provides a mock function with given fields: ctx, shares, updater

type DrivesDriveItemProvider_Expecter

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

func (*DrivesDriveItemProvider_Expecter) GetShare

func (_e *DrivesDriveItemProvider_Expecter) GetShare(ctx interface{}, shareID interface{}) *DrivesDriveItemProvider_GetShare_Call

GetShare is a helper method to define mock.On call

  • ctx context.Context
  • shareID *collaborationv1beta1.ShareId

func (*DrivesDriveItemProvider_Expecter) GetSharesForResource

func (_e *DrivesDriveItemProvider_Expecter) GetSharesForResource(ctx interface{}, resourceID interface{}, filters interface{}) *DrivesDriveItemProvider_GetSharesForResource_Call

GetSharesForResource is a helper method to define mock.On call

  • ctx context.Context
  • resourceID *providerv1beta1.ResourceId
  • filters []*collaborationv1beta1.Filter

func (*DrivesDriveItemProvider_Expecter) MountOCMShare

func (_e *DrivesDriveItemProvider_Expecter) MountOCMShare(ctx interface{}, resourceID interface{}) *DrivesDriveItemProvider_MountOCMShare_Call

MountOCMShare is a helper method to define mock.On call

  • ctx context.Context
  • resourceID *providerv1beta1.ResourceId

func (*DrivesDriveItemProvider_Expecter) MountShare

func (_e *DrivesDriveItemProvider_Expecter) MountShare(ctx interface{}, resourceID interface{}, name interface{}) *DrivesDriveItemProvider_MountShare_Call

MountShare is a helper method to define mock.On call

  • ctx context.Context
  • resourceID *providerv1beta1.ResourceId
  • name string

func (*DrivesDriveItemProvider_Expecter) UnmountShare

func (_e *DrivesDriveItemProvider_Expecter) UnmountShare(ctx interface{}, shareID interface{}) *DrivesDriveItemProvider_UnmountShare_Call

UnmountShare is a helper method to define mock.On call

  • ctx context.Context
  • shareID *collaborationv1beta1.ShareId

func (*DrivesDriveItemProvider_Expecter) UpdateShares

func (_e *DrivesDriveItemProvider_Expecter) UpdateShares(ctx interface{}, shares interface{}, updater interface{}) *DrivesDriveItemProvider_UpdateShares_Call

UpdateShares is a helper method to define mock.On call

  • ctx context.Context
  • shares []*collaborationv1beta1.ReceivedShare
  • updater svc.UpdateShareClosure

type DrivesDriveItemProvider_GetShare_Call

type DrivesDriveItemProvider_GetShare_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_GetShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShare'

func (*DrivesDriveItemProvider_GetShare_Call) Return

func (*DrivesDriveItemProvider_GetShare_Call) Run

type DrivesDriveItemProvider_GetSharesForResource_Call

type DrivesDriveItemProvider_GetSharesForResource_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_GetSharesForResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSharesForResource'

func (*DrivesDriveItemProvider_GetSharesForResource_Call) Return

func (*DrivesDriveItemProvider_GetSharesForResource_Call) Run

type DrivesDriveItemProvider_MountOCMShare_Call

type DrivesDriveItemProvider_MountOCMShare_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_MountOCMShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MountOCMShare'

func (*DrivesDriveItemProvider_MountOCMShare_Call) Return

func (*DrivesDriveItemProvider_MountOCMShare_Call) Run

type DrivesDriveItemProvider_MountShare_Call

type DrivesDriveItemProvider_MountShare_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_MountShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MountShare'

func (*DrivesDriveItemProvider_MountShare_Call) Return

func (*DrivesDriveItemProvider_MountShare_Call) Run

type DrivesDriveItemProvider_UnmountShare_Call

type DrivesDriveItemProvider_UnmountShare_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_UnmountShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnmountShare'

func (*DrivesDriveItemProvider_UnmountShare_Call) Return

func (*DrivesDriveItemProvider_UnmountShare_Call) Run

func (*DrivesDriveItemProvider_UnmountShare_Call) RunAndReturn

type DrivesDriveItemProvider_UpdateShares_Call

type DrivesDriveItemProvider_UpdateShares_Call struct {
	*mock.Call
}

DrivesDriveItemProvider_UpdateShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateShares'

func (*DrivesDriveItemProvider_UpdateShares_Call) Return

func (*DrivesDriveItemProvider_UpdateShares_Call) Run

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the HTTPClient type

func NewHTTPClient

func NewHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPClient

NewHTTPClient creates a new instance of HTTPClient. 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 (*HTTPClient) Do

func (_m *HTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

func (*HTTPClient) EXPECT

func (_m *HTTPClient) EXPECT() *HTTPClient_Expecter

type HTTPClient_Do_Call

type HTTPClient_Do_Call struct {
	*mock.Call
}

HTTPClient_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'

func (*HTTPClient_Do_Call) Return

func (_c *HTTPClient_Do_Call) Return(_a0 *http.Response, _a1 error) *HTTPClient_Do_Call

func (*HTTPClient_Do_Call) Run

func (_c *HTTPClient_Do_Call) Run(run func(req *http.Request)) *HTTPClient_Do_Call

func (*HTTPClient_Do_Call) RunAndReturn

func (_c *HTTPClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *HTTPClient_Do_Call

type HTTPClient_Expecter

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

func (*HTTPClient_Expecter) Do

func (_e *HTTPClient_Expecter) Do(req interface{}) *HTTPClient_Do_Call

Do is a helper method to define mock.On call

  • req *http.Request

type Permissions

type Permissions struct {
	mock.Mock
}

Permissions is an autogenerated mock type for the Permissions type

func NewPermissions

func NewPermissions(t interface {
	mock.TestingT
	Cleanup(func())
}) *Permissions

NewPermissions creates a new instance of Permissions. 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 (*Permissions) EXPECT

func (_m *Permissions) EXPECT() *Permissions_Expecter

func (*Permissions) GetPermissionByID

func (_m *Permissions) GetPermissionByID(ctx context.Context, request *v0.GetPermissionByIDRequest, opts ...client.CallOption) (*v0.GetPermissionByIDResponse, error)

GetPermissionByID provides a mock function with given fields: ctx, request, opts

func (*Permissions) ListPermissions

ListPermissions provides a mock function with given fields: ctx, req, opts

func (*Permissions) ListPermissionsByResource

ListPermissionsByResource provides a mock function with given fields: ctx, in, opts

type Permissions_Expecter

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

func (*Permissions_Expecter) GetPermissionByID

func (_e *Permissions_Expecter) GetPermissionByID(ctx interface{}, request interface{}, opts ...interface{}) *Permissions_GetPermissionByID_Call

GetPermissionByID is a helper method to define mock.On call

  • ctx context.Context
  • request *v0.GetPermissionByIDRequest
  • opts ...client.CallOption

func (*Permissions_Expecter) ListPermissions

func (_e *Permissions_Expecter) ListPermissions(ctx interface{}, req interface{}, opts ...interface{}) *Permissions_ListPermissions_Call

ListPermissions is a helper method to define mock.On call

  • ctx context.Context
  • req *v0.ListPermissionsRequest
  • opts ...client.CallOption

func (*Permissions_Expecter) ListPermissionsByResource

func (_e *Permissions_Expecter) ListPermissionsByResource(ctx interface{}, in interface{}, opts ...interface{}) *Permissions_ListPermissionsByResource_Call

ListPermissionsByResource is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.ListPermissionsByResourceRequest
  • opts ...client.CallOption

type Permissions_GetPermissionByID_Call

type Permissions_GetPermissionByID_Call struct {
	*mock.Call
}

Permissions_GetPermissionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPermissionByID'

func (*Permissions_GetPermissionByID_Call) Return

func (*Permissions_GetPermissionByID_Call) Run

type Permissions_ListPermissionsByResource_Call

type Permissions_ListPermissionsByResource_Call struct {
	*mock.Call
}

Permissions_ListPermissionsByResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPermissionsByResource'

func (*Permissions_ListPermissionsByResource_Call) Return

func (*Permissions_ListPermissionsByResource_Call) Run

type Permissions_ListPermissions_Call

type Permissions_ListPermissions_Call struct {
	*mock.Call
}

Permissions_ListPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPermissions'

func (*Permissions_ListPermissions_Call) Return

func (*Permissions_ListPermissions_Call) Run

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. 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 (*Publisher) EXPECT

func (_m *Publisher) EXPECT() *Publisher_Expecter

func (*Publisher) Publish

func (_m *Publisher) Publish(_a0 string, _a1 interface{}, _a2 ...events.PublishOption) error

Publish provides a mock function with given fields: _a0, _a1, _a2

type Publisher_Expecter

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

func (*Publisher_Expecter) Publish

func (_e *Publisher_Expecter) Publish(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Publisher_Publish_Call

Publish is a helper method to define mock.On call

  • _a0 string
  • _a1 interface{}
  • _a2 ...events.PublishOption

type Publisher_Publish_Call

type Publisher_Publish_Call struct {
	*mock.Call
}

Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*Publisher_Publish_Call) Return

func (*Publisher_Publish_Call) Run

func (_c *Publisher_Publish_Call) Run(run func(_a0 string, _a1 interface{}, _a2 ...events.PublishOption)) *Publisher_Publish_Call

func (*Publisher_Publish_Call) RunAndReturn

func (_c *Publisher_Publish_Call) RunAndReturn(run func(string, interface{}, ...events.PublishOption) error) *Publisher_Publish_Call

type RoleService

type RoleService struct {
	mock.Mock
}

RoleService is an autogenerated mock type for the RoleService type

func NewRoleService

func NewRoleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleService

NewRoleService creates a new instance of RoleService. 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 (*RoleService) AssignRoleToUser

AssignRoleToUser provides a mock function with given fields: ctx, in, opts

func (*RoleService) EXPECT

func (_m *RoleService) EXPECT() *RoleService_Expecter

func (*RoleService) ListRoleAssignments

ListRoleAssignments provides a mock function with given fields: ctx, in, opts

func (*RoleService) ListRoleAssignmentsFiltered

ListRoleAssignmentsFiltered provides a mock function with given fields: ctx, in, opts

func (*RoleService) ListRoles

ListRoles provides a mock function with given fields: ctx, in, opts

func (*RoleService) RemoveRoleFromUser

func (_m *RoleService) RemoveRoleFromUser(ctx context.Context, in *v0.RemoveRoleFromUserRequest, opts ...client.CallOption) (*emptypb.Empty, error)

RemoveRoleFromUser provides a mock function with given fields: ctx, in, opts

type RoleService_AssignRoleToUser_Call

type RoleService_AssignRoleToUser_Call struct {
	*mock.Call
}

RoleService_AssignRoleToUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignRoleToUser'

func (*RoleService_AssignRoleToUser_Call) Return

func (*RoleService_AssignRoleToUser_Call) Run

type RoleService_Expecter

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

func (*RoleService_Expecter) AssignRoleToUser

func (_e *RoleService_Expecter) AssignRoleToUser(ctx interface{}, in interface{}, opts ...interface{}) *RoleService_AssignRoleToUser_Call

AssignRoleToUser is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.AssignRoleToUserRequest
  • opts ...client.CallOption

func (*RoleService_Expecter) ListRoleAssignments

func (_e *RoleService_Expecter) ListRoleAssignments(ctx interface{}, in interface{}, opts ...interface{}) *RoleService_ListRoleAssignments_Call

ListRoleAssignments is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.ListRoleAssignmentsRequest
  • opts ...client.CallOption

func (*RoleService_Expecter) ListRoleAssignmentsFiltered

func (_e *RoleService_Expecter) ListRoleAssignmentsFiltered(ctx interface{}, in interface{}, opts ...interface{}) *RoleService_ListRoleAssignmentsFiltered_Call

ListRoleAssignmentsFiltered is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.ListRoleAssignmentsFilteredRequest
  • opts ...client.CallOption

func (*RoleService_Expecter) ListRoles

func (_e *RoleService_Expecter) ListRoles(ctx interface{}, in interface{}, opts ...interface{}) *RoleService_ListRoles_Call

ListRoles is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.ListBundlesRequest
  • opts ...client.CallOption

func (*RoleService_Expecter) RemoveRoleFromUser

func (_e *RoleService_Expecter) RemoveRoleFromUser(ctx interface{}, in interface{}, opts ...interface{}) *RoleService_RemoveRoleFromUser_Call

RemoveRoleFromUser is a helper method to define mock.On call

  • ctx context.Context
  • in *v0.RemoveRoleFromUserRequest
  • opts ...client.CallOption

type RoleService_ListRoleAssignmentsFiltered_Call

type RoleService_ListRoleAssignmentsFiltered_Call struct {
	*mock.Call
}

RoleService_ListRoleAssignmentsFiltered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoleAssignmentsFiltered'

func (*RoleService_ListRoleAssignmentsFiltered_Call) Return

func (*RoleService_ListRoleAssignmentsFiltered_Call) Run

type RoleService_ListRoleAssignments_Call

type RoleService_ListRoleAssignments_Call struct {
	*mock.Call
}

RoleService_ListRoleAssignments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoleAssignments'

func (*RoleService_ListRoleAssignments_Call) Return

func (*RoleService_ListRoleAssignments_Call) Run

type RoleService_ListRoles_Call

type RoleService_ListRoles_Call struct {
	*mock.Call
}

RoleService_ListRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoles'

func (*RoleService_ListRoles_Call) Return

func (*RoleService_ListRoles_Call) Run

func (*RoleService_ListRoles_Call) RunAndReturn

type RoleService_RemoveRoleFromUser_Call

type RoleService_RemoveRoleFromUser_Call struct {
	*mock.Call
}

RoleService_RemoveRoleFromUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRoleFromUser'

func (*RoleService_RemoveRoleFromUser_Call) Return

func (*RoleService_RemoveRoleFromUser_Call) Run

type Selectable

type Selectable[T interface{}] struct {
	mock.Mock
}

Selectable is an autogenerated mock type for the Selectable type

func NewSelectable

func NewSelectable[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *Selectable[T]

NewSelectable creates a new instance of Selectable. 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 (*Selectable[T]) EXPECT

func (_m *Selectable[T]) EXPECT() *Selectable_Expecter[T]

func (*Selectable[T]) Next

func (_m *Selectable[T]) Next(opts ...pool.Option) (T, error)

Next provides a mock function with given fields: opts

type Selectable_Expecter

type Selectable_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*Selectable_Expecter[T]) Next

func (_e *Selectable_Expecter[T]) Next(opts ...interface{}) *Selectable_Next_Call[T]

Next is a helper method to define mock.On call

  • opts ...pool.Option

type Selectable_Next_Call

type Selectable_Next_Call[T interface{}] struct {
	*mock.Call
}

Selectable_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'

func (*Selectable_Next_Call[T]) Return

func (_c *Selectable_Next_Call[T]) Return(_a0 T, _a1 error) *Selectable_Next_Call[T]

func (*Selectable_Next_Call[T]) Run

func (_c *Selectable_Next_Call[T]) Run(run func(opts ...pool.Option)) *Selectable_Next_Call[T]

func (*Selectable_Next_Call[T]) RunAndReturn

func (_c *Selectable_Next_Call[T]) RunAndReturn(run func(...pool.Option) (T, error)) *Selectable_Next_Call[T]

Jump to

Keyboard shortcuts

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