sigs.k8s.io/cluster-api-provider-aws@v1.5.5/pkg/cloud/services/sts/mock_stsiface/stsiface_mock.go (about) 1 /* 2 Copyright The Kubernetes Authors. 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 17 // Code generated by MockGen. DO NOT EDIT. 18 // Source: github.com/aws/aws-sdk-go/service/sts/stsiface (interfaces: STSAPI) 19 20 // Package mock_stsiface is a generated GoMock package. 21 package mock_stsiface 22 23 import ( 24 context "context" 25 reflect "reflect" 26 27 request "github.com/aws/aws-sdk-go/aws/request" 28 sts "github.com/aws/aws-sdk-go/service/sts" 29 gomock "github.com/golang/mock/gomock" 30 ) 31 32 // MockSTSAPI is a mock of STSAPI interface. 33 type MockSTSAPI struct { 34 ctrl *gomock.Controller 35 recorder *MockSTSAPIMockRecorder 36 } 37 38 // MockSTSAPIMockRecorder is the mock recorder for MockSTSAPI. 39 type MockSTSAPIMockRecorder struct { 40 mock *MockSTSAPI 41 } 42 43 // NewMockSTSAPI creates a new mock instance. 44 func NewMockSTSAPI(ctrl *gomock.Controller) *MockSTSAPI { 45 mock := &MockSTSAPI{ctrl: ctrl} 46 mock.recorder = &MockSTSAPIMockRecorder{mock} 47 return mock 48 } 49 50 // EXPECT returns an object that allows the caller to indicate expected use. 51 func (m *MockSTSAPI) EXPECT() *MockSTSAPIMockRecorder { 52 return m.recorder 53 } 54 55 // AssumeRole mocks base method. 56 func (m *MockSTSAPI) AssumeRole(arg0 *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) { 57 m.ctrl.T.Helper() 58 ret := m.ctrl.Call(m, "AssumeRole", arg0) 59 ret0, _ := ret[0].(*sts.AssumeRoleOutput) 60 ret1, _ := ret[1].(error) 61 return ret0, ret1 62 } 63 64 // AssumeRole indicates an expected call of AssumeRole. 65 func (mr *MockSTSAPIMockRecorder) AssumeRole(arg0 interface{}) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRole", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRole), arg0) 68 } 69 70 // AssumeRoleRequest mocks base method. 71 func (m *MockSTSAPI) AssumeRoleRequest(arg0 *sts.AssumeRoleInput) (*request.Request, *sts.AssumeRoleOutput) { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "AssumeRoleRequest", arg0) 74 ret0, _ := ret[0].(*request.Request) 75 ret1, _ := ret[1].(*sts.AssumeRoleOutput) 76 return ret0, ret1 77 } 78 79 // AssumeRoleRequest indicates an expected call of AssumeRoleRequest. 80 func (mr *MockSTSAPIMockRecorder) AssumeRoleRequest(arg0 interface{}) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleRequest), arg0) 83 } 84 85 // AssumeRoleWithContext mocks base method. 86 func (m *MockSTSAPI) AssumeRoleWithContext(arg0 context.Context, arg1 *sts.AssumeRoleInput, arg2 ...request.Option) (*sts.AssumeRoleOutput, error) { 87 m.ctrl.T.Helper() 88 varargs := []interface{}{arg0, arg1} 89 for _, a := range arg2 { 90 varargs = append(varargs, a) 91 } 92 ret := m.ctrl.Call(m, "AssumeRoleWithContext", varargs...) 93 ret0, _ := ret[0].(*sts.AssumeRoleOutput) 94 ret1, _ := ret[1].(error) 95 return ret0, ret1 96 } 97 98 // AssumeRoleWithContext indicates an expected call of AssumeRoleWithContext. 99 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 varargs := append([]interface{}{arg0, arg1}, arg2...) 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithContext), varargs...) 103 } 104 105 // AssumeRoleWithSAML mocks base method. 106 func (m *MockSTSAPI) AssumeRoleWithSAML(arg0 *sts.AssumeRoleWithSAMLInput) (*sts.AssumeRoleWithSAMLOutput, error) { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "AssumeRoleWithSAML", arg0) 109 ret0, _ := ret[0].(*sts.AssumeRoleWithSAMLOutput) 110 ret1, _ := ret[1].(error) 111 return ret0, ret1 112 } 113 114 // AssumeRoleWithSAML indicates an expected call of AssumeRoleWithSAML. 115 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAML(arg0 interface{}) *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAML", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAML), arg0) 118 } 119 120 // AssumeRoleWithSAMLRequest mocks base method. 121 func (m *MockSTSAPI) AssumeRoleWithSAMLRequest(arg0 *sts.AssumeRoleWithSAMLInput) (*request.Request, *sts.AssumeRoleWithSAMLOutput) { 122 m.ctrl.T.Helper() 123 ret := m.ctrl.Call(m, "AssumeRoleWithSAMLRequest", arg0) 124 ret0, _ := ret[0].(*request.Request) 125 ret1, _ := ret[1].(*sts.AssumeRoleWithSAMLOutput) 126 return ret0, ret1 127 } 128 129 // AssumeRoleWithSAMLRequest indicates an expected call of AssumeRoleWithSAMLRequest. 130 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAMLRequest(arg0 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAMLRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAMLRequest), arg0) 133 } 134 135 // AssumeRoleWithSAMLWithContext mocks base method. 136 func (m *MockSTSAPI) AssumeRoleWithSAMLWithContext(arg0 context.Context, arg1 *sts.AssumeRoleWithSAMLInput, arg2 ...request.Option) (*sts.AssumeRoleWithSAMLOutput, error) { 137 m.ctrl.T.Helper() 138 varargs := []interface{}{arg0, arg1} 139 for _, a := range arg2 { 140 varargs = append(varargs, a) 141 } 142 ret := m.ctrl.Call(m, "AssumeRoleWithSAMLWithContext", varargs...) 143 ret0, _ := ret[0].(*sts.AssumeRoleWithSAMLOutput) 144 ret1, _ := ret[1].(error) 145 return ret0, ret1 146 } 147 148 // AssumeRoleWithSAMLWithContext indicates an expected call of AssumeRoleWithSAMLWithContext. 149 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAMLWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 varargs := append([]interface{}{arg0, arg1}, arg2...) 152 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAMLWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAMLWithContext), varargs...) 153 } 154 155 // AssumeRoleWithWebIdentity mocks base method. 156 func (m *MockSTSAPI) AssumeRoleWithWebIdentity(arg0 *sts.AssumeRoleWithWebIdentityInput) (*sts.AssumeRoleWithWebIdentityOutput, error) { 157 m.ctrl.T.Helper() 158 ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentity", arg0) 159 ret0, _ := ret[0].(*sts.AssumeRoleWithWebIdentityOutput) 160 ret1, _ := ret[1].(error) 161 return ret0, ret1 162 } 163 164 // AssumeRoleWithWebIdentity indicates an expected call of AssumeRoleWithWebIdentity. 165 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentity(arg0 interface{}) *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentity", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentity), arg0) 168 } 169 170 // AssumeRoleWithWebIdentityRequest mocks base method. 171 func (m *MockSTSAPI) AssumeRoleWithWebIdentityRequest(arg0 *sts.AssumeRoleWithWebIdentityInput) (*request.Request, *sts.AssumeRoleWithWebIdentityOutput) { 172 m.ctrl.T.Helper() 173 ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentityRequest", arg0) 174 ret0, _ := ret[0].(*request.Request) 175 ret1, _ := ret[1].(*sts.AssumeRoleWithWebIdentityOutput) 176 return ret0, ret1 177 } 178 179 // AssumeRoleWithWebIdentityRequest indicates an expected call of AssumeRoleWithWebIdentityRequest. 180 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentityRequest(arg0 interface{}) *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentityRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentityRequest), arg0) 183 } 184 185 // AssumeRoleWithWebIdentityWithContext mocks base method. 186 func (m *MockSTSAPI) AssumeRoleWithWebIdentityWithContext(arg0 context.Context, arg1 *sts.AssumeRoleWithWebIdentityInput, arg2 ...request.Option) (*sts.AssumeRoleWithWebIdentityOutput, error) { 187 m.ctrl.T.Helper() 188 varargs := []interface{}{arg0, arg1} 189 for _, a := range arg2 { 190 varargs = append(varargs, a) 191 } 192 ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentityWithContext", varargs...) 193 ret0, _ := ret[0].(*sts.AssumeRoleWithWebIdentityOutput) 194 ret1, _ := ret[1].(error) 195 return ret0, ret1 196 } 197 198 // AssumeRoleWithWebIdentityWithContext indicates an expected call of AssumeRoleWithWebIdentityWithContext. 199 func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 200 mr.mock.ctrl.T.Helper() 201 varargs := append([]interface{}{arg0, arg1}, arg2...) 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentityWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentityWithContext), varargs...) 203 } 204 205 // DecodeAuthorizationMessage mocks base method. 206 func (m *MockSTSAPI) DecodeAuthorizationMessage(arg0 *sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error) { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "DecodeAuthorizationMessage", arg0) 209 ret0, _ := ret[0].(*sts.DecodeAuthorizationMessageOutput) 210 ret1, _ := ret[1].(error) 211 return ret0, ret1 212 } 213 214 // DecodeAuthorizationMessage indicates an expected call of DecodeAuthorizationMessage. 215 func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessage(arg0 interface{}) *gomock.Call { 216 mr.mock.ctrl.T.Helper() 217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessage", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessage), arg0) 218 } 219 220 // DecodeAuthorizationMessageRequest mocks base method. 221 func (m *MockSTSAPI) DecodeAuthorizationMessageRequest(arg0 *sts.DecodeAuthorizationMessageInput) (*request.Request, *sts.DecodeAuthorizationMessageOutput) { 222 m.ctrl.T.Helper() 223 ret := m.ctrl.Call(m, "DecodeAuthorizationMessageRequest", arg0) 224 ret0, _ := ret[0].(*request.Request) 225 ret1, _ := ret[1].(*sts.DecodeAuthorizationMessageOutput) 226 return ret0, ret1 227 } 228 229 // DecodeAuthorizationMessageRequest indicates an expected call of DecodeAuthorizationMessageRequest. 230 func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessageRequest(arg0 interface{}) *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessageRequest", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessageRequest), arg0) 233 } 234 235 // DecodeAuthorizationMessageWithContext mocks base method. 236 func (m *MockSTSAPI) DecodeAuthorizationMessageWithContext(arg0 context.Context, arg1 *sts.DecodeAuthorizationMessageInput, arg2 ...request.Option) (*sts.DecodeAuthorizationMessageOutput, error) { 237 m.ctrl.T.Helper() 238 varargs := []interface{}{arg0, arg1} 239 for _, a := range arg2 { 240 varargs = append(varargs, a) 241 } 242 ret := m.ctrl.Call(m, "DecodeAuthorizationMessageWithContext", varargs...) 243 ret0, _ := ret[0].(*sts.DecodeAuthorizationMessageOutput) 244 ret1, _ := ret[1].(error) 245 return ret0, ret1 246 } 247 248 // DecodeAuthorizationMessageWithContext indicates an expected call of DecodeAuthorizationMessageWithContext. 249 func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 250 mr.mock.ctrl.T.Helper() 251 varargs := append([]interface{}{arg0, arg1}, arg2...) 252 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessageWithContext", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessageWithContext), varargs...) 253 } 254 255 // GetAccessKeyInfo mocks base method. 256 func (m *MockSTSAPI) GetAccessKeyInfo(arg0 *sts.GetAccessKeyInfoInput) (*sts.GetAccessKeyInfoOutput, error) { 257 m.ctrl.T.Helper() 258 ret := m.ctrl.Call(m, "GetAccessKeyInfo", arg0) 259 ret0, _ := ret[0].(*sts.GetAccessKeyInfoOutput) 260 ret1, _ := ret[1].(error) 261 return ret0, ret1 262 } 263 264 // GetAccessKeyInfo indicates an expected call of GetAccessKeyInfo. 265 func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfo(arg0 interface{}) *gomock.Call { 266 mr.mock.ctrl.T.Helper() 267 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfo", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfo), arg0) 268 } 269 270 // GetAccessKeyInfoRequest mocks base method. 271 func (m *MockSTSAPI) GetAccessKeyInfoRequest(arg0 *sts.GetAccessKeyInfoInput) (*request.Request, *sts.GetAccessKeyInfoOutput) { 272 m.ctrl.T.Helper() 273 ret := m.ctrl.Call(m, "GetAccessKeyInfoRequest", arg0) 274 ret0, _ := ret[0].(*request.Request) 275 ret1, _ := ret[1].(*sts.GetAccessKeyInfoOutput) 276 return ret0, ret1 277 } 278 279 // GetAccessKeyInfoRequest indicates an expected call of GetAccessKeyInfoRequest. 280 func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfoRequest(arg0 interface{}) *gomock.Call { 281 mr.mock.ctrl.T.Helper() 282 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfoRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfoRequest), arg0) 283 } 284 285 // GetAccessKeyInfoWithContext mocks base method. 286 func (m *MockSTSAPI) GetAccessKeyInfoWithContext(arg0 context.Context, arg1 *sts.GetAccessKeyInfoInput, arg2 ...request.Option) (*sts.GetAccessKeyInfoOutput, error) { 287 m.ctrl.T.Helper() 288 varargs := []interface{}{arg0, arg1} 289 for _, a := range arg2 { 290 varargs = append(varargs, a) 291 } 292 ret := m.ctrl.Call(m, "GetAccessKeyInfoWithContext", varargs...) 293 ret0, _ := ret[0].(*sts.GetAccessKeyInfoOutput) 294 ret1, _ := ret[1].(error) 295 return ret0, ret1 296 } 297 298 // GetAccessKeyInfoWithContext indicates an expected call of GetAccessKeyInfoWithContext. 299 func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfoWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 300 mr.mock.ctrl.T.Helper() 301 varargs := append([]interface{}{arg0, arg1}, arg2...) 302 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfoWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfoWithContext), varargs...) 303 } 304 305 // GetCallerIdentity mocks base method. 306 func (m *MockSTSAPI) GetCallerIdentity(arg0 *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) { 307 m.ctrl.T.Helper() 308 ret := m.ctrl.Call(m, "GetCallerIdentity", arg0) 309 ret0, _ := ret[0].(*sts.GetCallerIdentityOutput) 310 ret1, _ := ret[1].(error) 311 return ret0, ret1 312 } 313 314 // GetCallerIdentity indicates an expected call of GetCallerIdentity. 315 func (mr *MockSTSAPIMockRecorder) GetCallerIdentity(arg0 interface{}) *gomock.Call { 316 mr.mock.ctrl.T.Helper() 317 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentity", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentity), arg0) 318 } 319 320 // GetCallerIdentityRequest mocks base method. 321 func (m *MockSTSAPI) GetCallerIdentityRequest(arg0 *sts.GetCallerIdentityInput) (*request.Request, *sts.GetCallerIdentityOutput) { 322 m.ctrl.T.Helper() 323 ret := m.ctrl.Call(m, "GetCallerIdentityRequest", arg0) 324 ret0, _ := ret[0].(*request.Request) 325 ret1, _ := ret[1].(*sts.GetCallerIdentityOutput) 326 return ret0, ret1 327 } 328 329 // GetCallerIdentityRequest indicates an expected call of GetCallerIdentityRequest. 330 func (mr *MockSTSAPIMockRecorder) GetCallerIdentityRequest(arg0 interface{}) *gomock.Call { 331 mr.mock.ctrl.T.Helper() 332 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentityRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentityRequest), arg0) 333 } 334 335 // GetCallerIdentityWithContext mocks base method. 336 func (m *MockSTSAPI) GetCallerIdentityWithContext(arg0 context.Context, arg1 *sts.GetCallerIdentityInput, arg2 ...request.Option) (*sts.GetCallerIdentityOutput, error) { 337 m.ctrl.T.Helper() 338 varargs := []interface{}{arg0, arg1} 339 for _, a := range arg2 { 340 varargs = append(varargs, a) 341 } 342 ret := m.ctrl.Call(m, "GetCallerIdentityWithContext", varargs...) 343 ret0, _ := ret[0].(*sts.GetCallerIdentityOutput) 344 ret1, _ := ret[1].(error) 345 return ret0, ret1 346 } 347 348 // GetCallerIdentityWithContext indicates an expected call of GetCallerIdentityWithContext. 349 func (mr *MockSTSAPIMockRecorder) GetCallerIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 350 mr.mock.ctrl.T.Helper() 351 varargs := append([]interface{}{arg0, arg1}, arg2...) 352 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentityWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentityWithContext), varargs...) 353 } 354 355 // GetFederationToken mocks base method. 356 func (m *MockSTSAPI) GetFederationToken(arg0 *sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error) { 357 m.ctrl.T.Helper() 358 ret := m.ctrl.Call(m, "GetFederationToken", arg0) 359 ret0, _ := ret[0].(*sts.GetFederationTokenOutput) 360 ret1, _ := ret[1].(error) 361 return ret0, ret1 362 } 363 364 // GetFederationToken indicates an expected call of GetFederationToken. 365 func (mr *MockSTSAPIMockRecorder) GetFederationToken(arg0 interface{}) *gomock.Call { 366 mr.mock.ctrl.T.Helper() 367 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationToken", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationToken), arg0) 368 } 369 370 // GetFederationTokenRequest mocks base method. 371 func (m *MockSTSAPI) GetFederationTokenRequest(arg0 *sts.GetFederationTokenInput) (*request.Request, *sts.GetFederationTokenOutput) { 372 m.ctrl.T.Helper() 373 ret := m.ctrl.Call(m, "GetFederationTokenRequest", arg0) 374 ret0, _ := ret[0].(*request.Request) 375 ret1, _ := ret[1].(*sts.GetFederationTokenOutput) 376 return ret0, ret1 377 } 378 379 // GetFederationTokenRequest indicates an expected call of GetFederationTokenRequest. 380 func (mr *MockSTSAPIMockRecorder) GetFederationTokenRequest(arg0 interface{}) *gomock.Call { 381 mr.mock.ctrl.T.Helper() 382 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationTokenRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationTokenRequest), arg0) 383 } 384 385 // GetFederationTokenWithContext mocks base method. 386 func (m *MockSTSAPI) GetFederationTokenWithContext(arg0 context.Context, arg1 *sts.GetFederationTokenInput, arg2 ...request.Option) (*sts.GetFederationTokenOutput, error) { 387 m.ctrl.T.Helper() 388 varargs := []interface{}{arg0, arg1} 389 for _, a := range arg2 { 390 varargs = append(varargs, a) 391 } 392 ret := m.ctrl.Call(m, "GetFederationTokenWithContext", varargs...) 393 ret0, _ := ret[0].(*sts.GetFederationTokenOutput) 394 ret1, _ := ret[1].(error) 395 return ret0, ret1 396 } 397 398 // GetFederationTokenWithContext indicates an expected call of GetFederationTokenWithContext. 399 func (mr *MockSTSAPIMockRecorder) GetFederationTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 400 mr.mock.ctrl.T.Helper() 401 varargs := append([]interface{}{arg0, arg1}, arg2...) 402 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationTokenWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationTokenWithContext), varargs...) 403 } 404 405 // GetSessionToken mocks base method. 406 func (m *MockSTSAPI) GetSessionToken(arg0 *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error) { 407 m.ctrl.T.Helper() 408 ret := m.ctrl.Call(m, "GetSessionToken", arg0) 409 ret0, _ := ret[0].(*sts.GetSessionTokenOutput) 410 ret1, _ := ret[1].(error) 411 return ret0, ret1 412 } 413 414 // GetSessionToken indicates an expected call of GetSessionToken. 415 func (mr *MockSTSAPIMockRecorder) GetSessionToken(arg0 interface{}) *gomock.Call { 416 mr.mock.ctrl.T.Helper() 417 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionToken", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionToken), arg0) 418 } 419 420 // GetSessionTokenRequest mocks base method. 421 func (m *MockSTSAPI) GetSessionTokenRequest(arg0 *sts.GetSessionTokenInput) (*request.Request, *sts.GetSessionTokenOutput) { 422 m.ctrl.T.Helper() 423 ret := m.ctrl.Call(m, "GetSessionTokenRequest", arg0) 424 ret0, _ := ret[0].(*request.Request) 425 ret1, _ := ret[1].(*sts.GetSessionTokenOutput) 426 return ret0, ret1 427 } 428 429 // GetSessionTokenRequest indicates an expected call of GetSessionTokenRequest. 430 func (mr *MockSTSAPIMockRecorder) GetSessionTokenRequest(arg0 interface{}) *gomock.Call { 431 mr.mock.ctrl.T.Helper() 432 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionTokenRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionTokenRequest), arg0) 433 } 434 435 // GetSessionTokenWithContext mocks base method. 436 func (m *MockSTSAPI) GetSessionTokenWithContext(arg0 context.Context, arg1 *sts.GetSessionTokenInput, arg2 ...request.Option) (*sts.GetSessionTokenOutput, error) { 437 m.ctrl.T.Helper() 438 varargs := []interface{}{arg0, arg1} 439 for _, a := range arg2 { 440 varargs = append(varargs, a) 441 } 442 ret := m.ctrl.Call(m, "GetSessionTokenWithContext", varargs...) 443 ret0, _ := ret[0].(*sts.GetSessionTokenOutput) 444 ret1, _ := ret[1].(error) 445 return ret0, ret1 446 } 447 448 // GetSessionTokenWithContext indicates an expected call of GetSessionTokenWithContext. 449 func (mr *MockSTSAPIMockRecorder) GetSessionTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 450 mr.mock.ctrl.T.Helper() 451 varargs := append([]interface{}{arg0, arg1}, arg2...) 452 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionTokenWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionTokenWithContext), varargs...) 453 }