-
Notifications
You must be signed in to change notification settings - Fork 3
/
mock_imds.go
84 lines (70 loc) · 3.02 KB
/
mock_imds.go
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/Azure/aks-tls-bootstrap-client/pkg/client (interfaces: ImdsClient)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
datamodel "github.com/Azure/aks-tls-bootstrap-client/pkg/datamodel"
gomock "go.uber.org/mock/gomock"
)
// MockImdsClient is a mock of ImdsClient interface.
type MockImdsClient struct {
ctrl *gomock.Controller
recorder *MockImdsClientMockRecorder
}
// MockImdsClientMockRecorder is the mock recorder for MockImdsClient.
type MockImdsClientMockRecorder struct {
mock *MockImdsClient
}
// NewMockImdsClient creates a new mock instance.
func NewMockImdsClient(ctrl *gomock.Controller) *MockImdsClient {
mock := &MockImdsClient{ctrl: ctrl}
mock.recorder = &MockImdsClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockImdsClient) EXPECT() *MockImdsClientMockRecorder {
return m.recorder
}
// GetAttestedData mocks base method.
func (m *MockImdsClient) GetAttestedData(arg0 context.Context, arg1, arg2 string) (*datamodel.VMSSAttestedData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAttestedData", arg0, arg1, arg2)
ret0, _ := ret[0].(*datamodel.VMSSAttestedData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAttestedData indicates an expected call of GetAttestedData.
func (mr *MockImdsClientMockRecorder) GetAttestedData(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttestedData", reflect.TypeOf((*MockImdsClient)(nil).GetAttestedData), arg0, arg1, arg2)
}
// GetInstanceData mocks base method.
func (m *MockImdsClient) GetInstanceData(arg0 context.Context, arg1 string) (*datamodel.VMSSInstanceData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetInstanceData", arg0, arg1)
ret0, _ := ret[0].(*datamodel.VMSSInstanceData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetInstanceData indicates an expected call of GetInstanceData.
func (mr *MockImdsClientMockRecorder) GetInstanceData(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceData", reflect.TypeOf((*MockImdsClient)(nil).GetInstanceData), arg0, arg1)
}
// GetMSIToken mocks base method.
func (m *MockImdsClient) GetMSIToken(arg0 context.Context, arg1, arg2, arg3 string) (*datamodel.AADTokenResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMSIToken", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(*datamodel.AADTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMSIToken indicates an expected call of GetMSIToken.
func (mr *MockImdsClientMockRecorder) GetMSIToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMSIToken", reflect.TypeOf((*MockImdsClient)(nil).GetMSIToken), arg0, arg1, arg2, arg3)
}