Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateFetcher ¶
type CertificateFetcher interface { Certs() <-chan types.CertificateAndKey RootCerts() <-chan types.Certificates }
func NewCertificateFetcher ¶
func NewCertificateFetcher(ctx context.Context, configWriter ConfigWriter, cfg ConsulConnectConfig) (CertificateFetcher, error)
func NewCertificateFetcherFromInterface ¶
func NewCertificateFetcherFromInterface(ctx context.Context, configWriter ConfigWriter, cfg ConsulConnectConfig, client ConnectClient) (CertificateFetcher, error)
type ConfigWriter ¶
type ConfigWriter interface {
Write(cfg *api.ConnectProxyConfig) error
}
type ConnectClient ¶
type ConnectClient interface { ConnectCARoots(q *api.QueryOptions) (*api.CARootList, *api.QueryMeta, error) ConnectCALeaf(svcname string, q *api.QueryOptions) (*api.LeafCert, *api.QueryMeta, error) ConnectProxyConfig(proxyid string, q *api.QueryOptions) (*api.ConnectProxyConfig, *api.QueryMeta, error) }
type ConsulConnectConfig ¶
func NewConsulConnectConfigFromEnv ¶
func NewConsulConnectConfigFromEnv() (ConsulConnectConfig, error)
type ProxyConfig ¶
type ProxyConfig struct { BindAddress string `json:"bind_address" mapstructure:"bind_address"` BindPort uint `json:"bind_port" mapstructure:"bind_port"` LocalServiceAddress string `json:"local_service_address" mapstructure:"local_service_address"` Upstreams []Upstream `json:"upstreams" mapstructure:"upstreams"` }
func GetProxyConfig ¶
func GetProxyConfig(pcfg *api.ConnectProxyConfig) (*ProxyConfig, error)
Click to show internal directories.
Click to hide internal directories.