github.com/optim-corp/cios-golang-sdk@v0.5.1/sdk/mock/client.go (about) 1 package ciossdmock 2 3 import ciossdk "github.com/optim-corp/cios-golang-sdk/sdk" 4 5 type MockClient struct { 6 ciossdk.CiosClient 7 pubSub ciossdk.PubSub 8 account ciossdk.Account 9 deviceAssetManagement ciossdk.DeviceAssetManagement 10 deviceManagement ciossdk.DeviceManagement 11 fileStorage ciossdk.FileStorage 12 geography ciossdk.Geography 13 auth ciossdk.Auth 14 license ciossdk.License 15 contract ciossdk.Contract 16 video ciossdk.VideoStreaming 17 } 18 19 func (m *MockClient) PubSub() ciossdk.PubSub { 20 return m.pubSub 21 } 22 23 func (m *MockClient) Account() ciossdk.Account { 24 return m.account 25 } 26 27 func (m *MockClient) DeviceAssetManagement() ciossdk.DeviceAssetManagement { 28 return m.deviceAssetManagement 29 } 30 31 func (m *MockClient) DeviceManagement() ciossdk.DeviceManagement { 32 return m.deviceManagement 33 } 34 35 func (m *MockClient) FileStorage() ciossdk.FileStorage { 36 return m.fileStorage 37 } 38 39 func (m *MockClient) Geography() ciossdk.Geography { 40 return m.geography 41 } 42 43 func (m *MockClient) License() ciossdk.License { 44 return m.license 45 } 46 47 func (m *MockClient) Contract() ciossdk.Contract { 48 return m.contract 49 } 50 51 func (m *MockClient) Video() ciossdk.VideoStreaming { 52 return m.video 53 } 54 55 func (m *MockClient) Auth() ciossdk.Auth { 56 return m.auth 57 } 58 59 func (m *MockClient) SetPubSub(pubSub ciossdk.PubSub) { 60 m.pubSub = pubSub 61 } 62 63 func (m *MockClient) SetAccount(account ciossdk.Account) { 64 m.account = account 65 } 66 67 func (m *MockClient) SetDeviceAssetManagement(deviceAssetManagement ciossdk.DeviceAssetManagement) { 68 m.deviceAssetManagement = deviceAssetManagement 69 } 70 71 func (m *MockClient) SetDeviceManagement(deviceManagement ciossdk.DeviceManagement) { 72 m.deviceManagement = deviceManagement 73 } 74 75 func (m *MockClient) SetFileStorage(fileStorage ciossdk.FileStorage) { 76 m.fileStorage = fileStorage 77 } 78 79 func (m *MockClient) SetGeography(geography ciossdk.Geography) { 80 m.geography = geography 81 } 82 83 func (m *MockClient) SetAuth(auth ciossdk.Auth) { 84 m.auth = auth 85 } 86 87 func (m *MockClient) SetLicense(license ciossdk.License) { 88 m.license = license 89 } 90 91 func (m *MockClient) SetContract(contract ciossdk.Contract) { 92 m.contract = contract 93 } 94 95 func (m *MockClient) SetVideo(video ciossdk.VideoStreaming) { 96 m.video = video 97 } 98 99 func (m MockClient) String() string { 100 panic("implement me") 101 } 102 103 func (m MockClient) Debug(debug bool) ciossdk.CiosClient { 104 panic("implement me") 105 } 106 107 func (m MockClient) RequestScope(scope string) ciossdk.CiosClient { 108 panic("implement me") 109 } 110 111 func (m MockClient) TokenExp() int64 { 112 panic("implement me") 113 } 114 115 func (m MockClient) SetTokenExp(tokenExp int64) { 116 panic("implement me") 117 }