Skip to content

Commit

Permalink
Merge pull request #165 from nikhiljindal/listurlmaps
Browse files Browse the repository at this point in the history
Adding ListUrlMaps to LoadBalancers interface
  • Loading branch information
nicksardo authored Mar 22, 2018
2 parents 33b231c + 8f99b25 commit 3dbf539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/loadbalancers/fakes.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ func (f *FakeLoadBalancers) DeleteUrlMap(name string) error {
return nil
}

// ListUrlMaps fakes getting url maps from the cloud.
func (f *FakeLoadBalancers) ListUrlMaps() ([]*compute.UrlMap, error) {
f.calls = append(f.calls, "ListUrlMaps")
return f.Um, nil
}

// TargetProxies fakes

// GetTargetHttpProxy fakes getting target http proxies from the cloud.
Expand Down
1 change: 1 addition & 0 deletions pkg/loadbalancers/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type LoadBalancers interface {
CreateUrlMap(urlMap *compute.UrlMap) error
UpdateUrlMap(urlMap *compute.UrlMap) error
DeleteUrlMap(name string) error
ListUrlMaps() ([]*compute.UrlMap, error)

// TargetProxies
GetTargetHttpProxy(name string) (*compute.TargetHttpProxy, error)
Expand Down

0 comments on commit 3dbf539

Please sign in to comment.