open-nomad/command/agent/consul/connect_proxies_testing.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
280 B
Go
Raw Normal View History

package consul
// ConnectProxies implements SupportedProxiesAPI by mocking the Consul Agent API.
type MockSupportedProxiesAPI struct {
Value map[string][]string
Error error
}
func (m MockSupportedProxiesAPI) Proxies() (map[string][]string, error) {
return m.Value, m.Error
}