Adding interfaces for better operability and mock / testing (#17)
authordavidjumani <dj.davidjumani1994@gmail.com>
Sun, 7 Nov 2021 11:19:32 +0000 (16:49 +0530)
committerGitHub <noreply@github.com>
Sun, 7 Nov 2021 11:19:32 +0000 (16:49 +0530)
commitada7050cfebfeafa905caf5fd3c36d0e66b9f9ce
tree0826babf65857e76ede5e89d15b5bc3023f08e37
parent0f7735386b1b9fc2863f5c4f355c4ca8d468af9d
Adding interfaces for better operability and mock / testing (#17)

* Adding interfaces for better operability and mock / testing

* Update readme

* Add support for getters
148 files changed:
.gitignore
Makefile [new file with mode: 0644]
README.md
cloudstack/APIDiscoveryService.go
cloudstack/APIDiscoveryService_mock.go [new file with mode: 0644]
cloudstack/AccountService.go
cloudstack/AccountService_mock.go [new file with mode: 0644]
cloudstack/AddressService.go
cloudstack/AddressService_mock.go [new file with mode: 0644]
cloudstack/AffinityGroupService.go
cloudstack/AffinityGroupService_mock.go [new file with mode: 0644]
cloudstack/AlertService.go
cloudstack/AlertService_mock.go [new file with mode: 0644]
cloudstack/AsyncjobService.go
cloudstack/AsyncjobService_mock.go [new file with mode: 0644]
cloudstack/AuthenticationService.go
cloudstack/AuthenticationService_mock.go [new file with mode: 0644]
cloudstack/AutoScaleService.go
cloudstack/AutoScaleService_mock.go [new file with mode: 0644]
cloudstack/BaremetalService.go
cloudstack/BaremetalService_mock.go [new file with mode: 0644]
cloudstack/BigSwitchBCFService.go
cloudstack/BigSwitchBCFService_mock.go [new file with mode: 0644]
cloudstack/BrocadeVCSService.go
cloudstack/BrocadeVCSService_mock.go [new file with mode: 0644]
cloudstack/CertificateService.go
cloudstack/CertificateService_mock.go [new file with mode: 0644]
cloudstack/CloudIdentifierService.go
cloudstack/CloudIdentifierService_mock.go [new file with mode: 0644]
cloudstack/ClusterService.go
cloudstack/ClusterService_mock.go [new file with mode: 0644]
cloudstack/ConfigurationService.go
cloudstack/ConfigurationService_mock.go [new file with mode: 0644]
cloudstack/CustomService.go
cloudstack/CustomService_mock.go [new file with mode: 0644]
cloudstack/DiskOfferingService.go
cloudstack/DiskOfferingService_mock.go [new file with mode: 0644]
cloudstack/DomainService.go
cloudstack/DomainService_mock.go [new file with mode: 0644]
cloudstack/EventService.go
cloudstack/EventService_mock.go [new file with mode: 0644]
cloudstack/ExtFirewallService_mock.go [new file with mode: 0644]
cloudstack/ExtLoadBalancerService_mock.go [new file with mode: 0644]
cloudstack/ExternalDeviceService_mock.go [new file with mode: 0644]
cloudstack/FirewallService.go
cloudstack/FirewallService_mock.go [new file with mode: 0644]
cloudstack/GuestOSService.go
cloudstack/GuestOSService_mock.go [new file with mode: 0644]
cloudstack/HostService.go
cloudstack/HostService_mock.go [new file with mode: 0644]
cloudstack/HypervisorService.go
cloudstack/HypervisorService_mock.go [new file with mode: 0644]
cloudstack/ISOService.go
cloudstack/ISOService_mock.go [new file with mode: 0644]
cloudstack/ImageStoreService.go
cloudstack/ImageStoreService_mock.go [new file with mode: 0644]
cloudstack/InternalLBService.go
cloudstack/InternalLBService_mock.go [new file with mode: 0644]
cloudstack/LDAPService.go
cloudstack/LDAPService_mock.go [new file with mode: 0644]
cloudstack/LimitService.go
cloudstack/LimitService_mock.go [new file with mode: 0644]
cloudstack/LoadBalancerService.go
cloudstack/LoadBalancerService_mock.go [new file with mode: 0644]
cloudstack/NATService.go
cloudstack/NATService_mock.go [new file with mode: 0644]
cloudstack/NetworkACLService.go
cloudstack/NetworkACLService_mock.go [new file with mode: 0644]
cloudstack/NetworkDeviceService.go
cloudstack/NetworkDeviceService_mock.go [new file with mode: 0644]
cloudstack/NetworkOfferingService.go
cloudstack/NetworkOfferingService_mock.go [new file with mode: 0644]
cloudstack/NetworkService.go
cloudstack/NetworkService_mock.go [new file with mode: 0644]
cloudstack/NicService.go
cloudstack/NicService_mock.go [new file with mode: 0644]
cloudstack/NiciraNVPService.go
cloudstack/NiciraNVPService_mock.go [new file with mode: 0644]
cloudstack/OutofbandManagementService.go
cloudstack/OutofbandManagementService_mock.go [new file with mode: 0644]
cloudstack/OvsElementService.go
cloudstack/OvsElementService_mock.go [new file with mode: 0644]
cloudstack/PodService.go
cloudstack/PodService_mock.go [new file with mode: 0644]
cloudstack/PoolService.go
cloudstack/PoolService_mock.go [new file with mode: 0644]
cloudstack/PortableIPService.go
cloudstack/PortableIPService_mock.go [new file with mode: 0644]
cloudstack/ProjectService.go
cloudstack/ProjectService_mock.go [new file with mode: 0644]
cloudstack/QuotaService.go
cloudstack/QuotaService_mock.go [new file with mode: 0644]
cloudstack/RegionService.go
cloudstack/RegionService_mock.go [new file with mode: 0644]
cloudstack/ResourcemetadataService.go
cloudstack/ResourcemetadataService_mock.go [new file with mode: 0644]
cloudstack/ResourcetagsService.go
cloudstack/ResourcetagsService_mock.go [new file with mode: 0644]
cloudstack/RoleService.go
cloudstack/RoleService_mock.go [new file with mode: 0644]
cloudstack/RouterService.go
cloudstack/RouterService_mock.go [new file with mode: 0644]
cloudstack/SSHService.go
cloudstack/SSHService_mock.go [new file with mode: 0644]
cloudstack/SecurityGroupService.go
cloudstack/SecurityGroupService_mock.go [new file with mode: 0644]
cloudstack/ServiceOfferingService.go
cloudstack/ServiceOfferingService_mock.go [new file with mode: 0644]
cloudstack/SnapshotService.go
cloudstack/SnapshotService_mock.go [new file with mode: 0644]
cloudstack/StoragePoolService.go
cloudstack/StoragePoolService_mock.go [new file with mode: 0644]
cloudstack/StratosphereSSPService.go
cloudstack/StratosphereSSPService_mock.go [new file with mode: 0644]
cloudstack/SwiftService.go
cloudstack/SwiftService_mock.go [new file with mode: 0644]
cloudstack/SystemCapacityService.go
cloudstack/SystemCapacityService_mock.go [new file with mode: 0644]
cloudstack/SystemVMService.go
cloudstack/SystemVMService_mock.go [new file with mode: 0644]
cloudstack/TemplateService.go
cloudstack/TemplateService_mock.go [new file with mode: 0644]
cloudstack/UCSService.go
cloudstack/UCSService_mock.go [new file with mode: 0644]
cloudstack/UsageService.go
cloudstack/UsageService_mock.go [new file with mode: 0644]
cloudstack/UserService.go
cloudstack/UserService_mock.go [new file with mode: 0644]
cloudstack/VLANService.go
cloudstack/VLANService_mock.go [new file with mode: 0644]
cloudstack/VMGroupService.go
cloudstack/VMGroupService_mock.go [new file with mode: 0644]
cloudstack/VPCService.go
cloudstack/VPCService_mock.go [new file with mode: 0644]
cloudstack/VPNService.go
cloudstack/VPNService_mock.go [new file with mode: 0644]
cloudstack/VirtualMachineService.go
cloudstack/VirtualMachineService_mock.go [new file with mode: 0644]
cloudstack/VolumeService.go
cloudstack/VolumeService_mock.go [new file with mode: 0644]
cloudstack/ZoneService.go
cloudstack/ZoneService_mock.go [new file with mode: 0644]
cloudstack/cloudstack.go
examples/mock_test.go [new file with mode: 0644]
generate/generate.go
go.mod
go.sum
header.txt [new file with mode: 0644]