mock_permission

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_permission is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) AutoApproveSession

func (m *MockService) AutoApproveSession(sessionID string)

AutoApproveSession mocks base method.

func (*MockService) Deny

Deny mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) Grant

func (m *MockService) Grant(arg0 permission.PermissionRequest)

Grant mocks base method.

func (*MockService) GrantPersistant

func (m *MockService) GrantPersistant(arg0 permission.PermissionRequest)

GrantPersistant mocks base method.

func (*MockService) IsAutoApproveSession

func (m *MockService) IsAutoApproveSession(sessionID string) bool

IsAutoApproveSession mocks base method.

func (*MockService) Request

Request mocks base method.

func (*MockService) SubscribeWithContext added in v1.7.0

func (m *MockService) SubscribeWithContext(arg0 context.Context) <-chan pubsub.Event[permission.PermissionRequest]

SubscribeWithContext mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) AutoApproveSession

func (mr *MockServiceMockRecorder) AutoApproveSession(sessionID any) *gomock.Call

AutoApproveSession indicates an expected call of AutoApproveSession.

func (*MockServiceMockRecorder) Deny

func (mr *MockServiceMockRecorder) Deny(arg0 any) *gomock.Call

Deny indicates an expected call of Deny.

func (*MockServiceMockRecorder) Grant

func (mr *MockServiceMockRecorder) Grant(arg0 any) *gomock.Call

Grant indicates an expected call of Grant.

func (*MockServiceMockRecorder) GrantPersistant

func (mr *MockServiceMockRecorder) GrantPersistant(arg0 any) *gomock.Call

GrantPersistant indicates an expected call of GrantPersistant.

func (*MockServiceMockRecorder) IsAutoApproveSession

func (mr *MockServiceMockRecorder) IsAutoApproveSession(sessionID any) *gomock.Call

IsAutoApproveSession indicates an expected call of IsAutoApproveSession.

func (*MockServiceMockRecorder) Request

func (mr *MockServiceMockRecorder) Request(opts any) *gomock.Call

Request indicates an expected call of Request.

func (*MockServiceMockRecorder) SubscribeWithContext added in v1.7.0

func (mr *MockServiceMockRecorder) SubscribeWithContext(arg0 any) *gomock.Call

SubscribeWithContext indicates an expected call of SubscribeWithContext.

Jump to

Keyboard shortcuts

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