Documentation ¶
Overview ¶
Package bufapiclient provides client-side Connect constructs.
Index ¶
- func NewConnectClientProvider(logger *zap.Logger, client *http.Client, options ...RegistryProviderOption) (registryv1alpha1apiclient.Provider, error)
- type RegistryProviderOption
- func RegistryProviderWithAddressMapper(addressMapper func(string) string) RegistryProviderOption
- func RegistryProviderWithAuthInterceptorProvider(authInterceptorProvider interceptorProviderFunc) RegistryProviderOption
- func RegistryProviderWithInterceptors(interceptors ...connect.Interceptor) RegistryProviderOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnectClientProvider ¶ added in v1.5.0
func NewConnectClientProvider( logger *zap.Logger, client *http.Client, options ...RegistryProviderOption, ) (registryv1alpha1apiclient.Provider, error)
NewConnectClientProvider creates a new Provider using Connect as its underlying transport.
Types ¶
type RegistryProviderOption ¶
type RegistryProviderOption func(*registryProviderOptions)
RegistryProviderOption is an option for a new registry Provider.
func RegistryProviderWithAddressMapper ¶
func RegistryProviderWithAddressMapper(addressMapper func(string) string) RegistryProviderOption
RegistryProviderWithAddressMapper returns a new RegistryProviderOption that maps addresses with the given function.
func RegistryProviderWithAuthInterceptorProvider ¶ added in v1.7.0
func RegistryProviderWithAuthInterceptorProvider(authInterceptorProvider interceptorProviderFunc) RegistryProviderOption
RegistryProviderWithAuthInterceptorProvider adds the given interceptor provider, which when invoked with an address will return an interceptor that looks up an auth token for the provided address
func RegistryProviderWithInterceptors ¶ added in v1.7.0
func RegistryProviderWithInterceptors(interceptors ...connect.Interceptor) RegistryProviderOption
RegistryProviderWithInterceptors adds the provided interceptors to all clients returned from the provider
Click to show internal directories.
Click to hide internal directories.