...

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

Documentation: github.com/ory/fosite/internal

     1  /*
     2   * Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   *
    16   * @author		Aeneas Rekkas <aeneas+oss@aeneas.io>
    17   * @copyright 	2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
    18   * @license 	Apache-2.0
    19   *
    20   */
    21  
    22  // Automatically generated by MockGen. DO NOT EDIT!
    23  // Source: github.com/ory/fosite/handler/oauth2 (interfaces: RefreshTokenGrantStorage)
    24  
    25  package internal
    26  
    27  import (
    28  	context "context"
    29  
    30  	gomock "github.com/golang/mock/gomock"
    31  
    32  	fosite "github.com/ory/fosite"
    33  )
    34  
    35  // Mock of RefreshTokenGrantStorage interface
    36  type MockRefreshTokenGrantStorage struct {
    37  	ctrl     *gomock.Controller
    38  	recorder *_MockRefreshTokenGrantStorageRecorder
    39  }
    40  
    41  // Recorder for MockRefreshTokenGrantStorage (not exported)
    42  type _MockRefreshTokenGrantStorageRecorder struct {
    43  	mock *MockRefreshTokenGrantStorage
    44  }
    45  
    46  func NewMockRefreshTokenGrantStorage(ctrl *gomock.Controller) *MockRefreshTokenGrantStorage {
    47  	mock := &MockRefreshTokenGrantStorage{ctrl: ctrl}
    48  	mock.recorder = &_MockRefreshTokenGrantStorageRecorder{mock}
    49  	return mock
    50  }
    51  
    52  func (_m *MockRefreshTokenGrantStorage) EXPECT() *_MockRefreshTokenGrantStorageRecorder {
    53  	return _m.recorder
    54  }
    55  
    56  func (_m *MockRefreshTokenGrantStorage) CreateRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error {
    57  	ret := _m.ctrl.Call(_m, "CreateRefreshTokenSession", _param0, _param1, _param2)
    58  	ret0, _ := ret[0].(error)
    59  	return ret0
    60  }
    61  
    62  func (_mr *_MockRefreshTokenGrantStorageRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    63  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateRefreshTokenSession", arg0, arg1, arg2)
    64  }
    65  
    66  func (_m *MockRefreshTokenGrantStorage) DeleteRefreshTokenSession(_param0 context.Context, _param1 string) error {
    67  	ret := _m.ctrl.Call(_m, "DeleteRefreshTokenSession", _param0, _param1)
    68  	ret0, _ := ret[0].(error)
    69  	return ret0
    70  }
    71  
    72  func (_mr *_MockRefreshTokenGrantStorageRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call {
    73  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteRefreshTokenSession", arg0, arg1)
    74  }
    75  
    76  func (_m *MockRefreshTokenGrantStorage) GetRefreshTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error) {
    77  	ret := _m.ctrl.Call(_m, "GetRefreshTokenSession", _param0, _param1, _param2)
    78  	ret0, _ := ret[0].(fosite.Requester)
    79  	ret1, _ := ret[1].(error)
    80  	return ret0, ret1
    81  }
    82  
    83  func (_mr *_MockRefreshTokenGrantStorageRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    84  	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRefreshTokenSession", arg0, arg1, arg2)
    85  }
    86  
    87  func (_m *MockRefreshTokenGrantStorage) PersistRefreshTokenGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error {
    88  	ret := _m.ctrl.Call(_m, "PersistRefreshTokenGrantSession", _param0, _param1, _param2, _param3, _param4)
    89  	ret0, _ := ret[0].(error)
    90  	return ret0
    91  }
    92  
    93  func (_mr *_MockRefreshTokenGrantStorageRecorder) PersistRefreshTokenGrantSession(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    94  	return _mr.mock.ctrl.RecordCall(_mr.mock, "PersistRefreshTokenGrantSession", arg0, arg1, arg2, arg3, arg4)
    95  }
    96  

View as plain text