Listen for events and forward to external security scanning services.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openstack_mock_test.go 631B

12345678910111213141516171819202122232425262728293031
  1. package main
  2. type OpenStackTestActions struct {
  3. regionName string
  4. tenantID string
  5. }
  6. func (s OpenStackTestActions) Connect(tenantID string, username string) error {
  7. return nil
  8. }
  9. func (s OpenStackTestActions) GetPortList() []OpenStackIPMap {
  10. return []OpenStackIPMap{
  11. {
  12. ipAddress: "10.0.0.1",
  13. securityGroup: "46d46540-98ac-4c93-ae62-68dddab2282e",
  14. },
  15. {
  16. ipAddress: "10.0.0.2",
  17. securityGroup: "groupTwo",
  18. },
  19. {
  20. ipAddress: "10.0.0.3",
  21. securityGroup: "46d46540-98ac-4c93-ae62-68dddab2282e",
  22. },
  23. }
  24. }
  25. func connectFakeOpenstack() *OpenStackTestActions {
  26. return new(OpenStackTestActions)
  27. }