1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
// Code generated by MockGen. DO NOT EDIT.
// Source: client.go
// Package mock_tvm is a generated GoMock package.
package mock_tvm
import (
tvm "a.yandex-team.ru/library/go/yandex/tvm"
context "context"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
}
// MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance.
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &MockClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) EXPECT() *MockClientMockRecorder {
return m.recorder
}
// GetServiceTicketForAlias mocks base method.
func (m *MockClient) GetServiceTicketForAlias(ctx context.Context, alias string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetServiceTicketForAlias", ctx, alias)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetServiceTicketForAlias indicates an expected call of GetServiceTicketForAlias.
func (mr *MockClientMockRecorder) GetServiceTicketForAlias(ctx, alias interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceTicketForAlias", reflect.TypeOf((*MockClient)(nil).GetServiceTicketForAlias), ctx, alias)
}
// GetServiceTicketForID mocks base method.
func (m *MockClient) GetServiceTicketForID(ctx context.Context, dstID tvm.ClientID) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetServiceTicketForID", ctx, dstID)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetServiceTicketForID indicates an expected call of GetServiceTicketForID.
func (mr *MockClientMockRecorder) GetServiceTicketForID(ctx, dstID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceTicketForID", reflect.TypeOf((*MockClient)(nil).GetServiceTicketForID), ctx, dstID)
}
// CheckServiceTicket mocks base method.
func (m *MockClient) CheckServiceTicket(ctx context.Context, ticket string) (*tvm.CheckedServiceTicket, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckServiceTicket", ctx, ticket)
ret0, _ := ret[0].(*tvm.CheckedServiceTicket)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CheckServiceTicket indicates an expected call of CheckServiceTicket.
func (mr *MockClientMockRecorder) CheckServiceTicket(ctx, ticket interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckServiceTicket", reflect.TypeOf((*MockClient)(nil).CheckServiceTicket), ctx, ticket)
}
// CheckUserTicket mocks base method.
func (m *MockClient) CheckUserTicket(ctx context.Context, ticket string, opts ...tvm.CheckUserTicketOption) (*tvm.CheckedUserTicket, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, ticket}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "CheckUserTicket", varargs...)
ret0, _ := ret[0].(*tvm.CheckedUserTicket)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CheckUserTicket indicates an expected call of CheckUserTicket.
func (mr *MockClientMockRecorder) CheckUserTicket(ctx, ticket interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, ticket}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckUserTicket", reflect.TypeOf((*MockClient)(nil).CheckUserTicket), varargs...)
}
// GetRoles mocks base method.
func (m *MockClient) GetRoles(ctx context.Context) (*tvm.Roles, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRoles", ctx)
ret0, _ := ret[0].(*tvm.Roles)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRoles indicates an expected call of GetRoles.
func (mr *MockClientMockRecorder) GetRoles(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoles", reflect.TypeOf((*MockClient)(nil).GetRoles), ctx)
}
// GetStatus mocks base method.
func (m *MockClient) GetStatus(ctx context.Context) (tvm.ClientStatusInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStatus", ctx)
ret0, _ := ret[0].(tvm.ClientStatusInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetStatus indicates an expected call of GetStatus.
func (mr *MockClientMockRecorder) GetStatus(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatus", reflect.TypeOf((*MockClient)(nil).GetStatus), ctx)
}
|