Files
nomad/command/agent/consul/connect_proxies_testing.go
2023-04-10 15:36:59 +00:00

15 lines
350 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
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
}