...

Source file src/github.com/ory/fosite/internal/oauth2_client_storage.go

Documentation: github.com/ory/fosite/internal

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ory/fosite/handler/oauth2 (interfaces: ClientCredentialsGrantStorage)
     3  
     4  // Package internal is a generated GoMock package.
     5  package internal
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  
    13  	fosite "github.com/ory/fosite"
    14  )
    15  
    16  // MockClientCredentialsGrantStorage is a mock of ClientCredentialsGrantStorage interface
    17  type MockClientCredentialsGrantStorage struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockClientCredentialsGrantStorageMockRecorder
    20  }
    21  
    22  // MockClientCredentialsGrantStorageMockRecorder is the mock recorder for MockClientCredentialsGrantStorage
    23  type MockClientCredentialsGrantStorageMockRecorder struct {
    24  	mock *MockClientCredentialsGrantStorage
    25  }
    26  
    27  // NewMockClientCredentialsGrantStorage creates a new mock instance
    28  func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage {
    29  	mock := &MockClientCredentialsGrantStorage{ctrl: ctrl}
    30  	mock.recorder = &MockClientCredentialsGrantStorageMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockClientCredentialsGrantStorage) EXPECT() *MockClientCredentialsGrantStorageMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // CreateAccessTokenSession mocks base method
    40  func (m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "CreateAccessTokenSession", arg0, arg1, arg2)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
    48  func (mr *MockClientCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2)
    51  }
    52  
    53  // DeleteAccessTokenSession mocks base method
    54  func (m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "DeleteAccessTokenSession", arg0, arg1)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
    62  func (mr *MockClientCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).DeleteAccessTokenSession), arg0, arg1)
    65  }
    66  
    67  // GetAccessTokenSession mocks base method
    68  func (m *MockClientCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error) {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "GetAccessTokenSession", arg0, arg1, arg2)
    71  	ret0, _ := ret[0].(fosite.Requester)
    72  	ret1, _ := ret[1].(error)
    73  	return ret0, ret1
    74  }
    75  
    76  // GetAccessTokenSession indicates an expected call of GetAccessTokenSession
    77  func (mr *MockClientCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockClientCredentialsGrantStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2)
    80  }
    81  

View as plain text