github.com/hernad/nomad@v1.6.112/command/agent/consul/connect_proxies_testing.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package consul
     5  
     6  // ConnectProxies implements SupportedProxiesAPI by mocking the Consul Agent API.
     7  type MockSupportedProxiesAPI struct {
     8  	Value map[string][]string
     9  	Error error
    10  }
    11  
    12  func (m MockSupportedProxiesAPI) Proxies() (map[string][]string, error) {
    13  	return m.Value, m.Error
    14  }