Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider( logger *zap.Logger, clientConnProvider grpcclient.ClientConnProvider, options ...ProviderOption, ) registryv1alpha1apiclient.Provider
NewProvider returns a new Provider.
Types ¶
type ProviderOption ¶
type ProviderOption func(*provider)
ProviderOption is an option for a new Provider.
func WithAddressMapper ¶
func WithAddressMapper(addressMapper func(string) string) ProviderOption
WithAddressMapper maps the address with the given function.
func WithContextModifierProvider ¶
func WithContextModifierProvider(contextModifierProvider func(address string) (func(context.Context) context.Context, error)) ProviderOption
WithContextModifierProvider provides a function that modifies the context before every RPC invocation. Applied before the address mapper.
Source Files ¶
- admin.pb.go
- audit_logs.pb.go
- authn.pb.go
- authz.pb.go
- convert.pb.go
- display.pb.go
- doc.pb.go
- download.pb.go
- generate.pb.go
- image.pb.go
- jsonschema.pb.go
- organization.pb.go
- owner.pb.go
- plugin.pb.go
- push.pb.go
- recommendation.pb.go
- reference.pb.go
- registryv1alpha1apiclientgrpc.pb.go
- repository.pb.go
- repository_branch.pb.go
- repository_commit.pb.go
- repository_tag.pb.go
- repository_track.pb.go
- repository_track_commit.pb.go
- resolve.pb.go
- search.pb.go
- token.pb.go
- usage.gen.go
- user.pb.go
Click to show internal directories.
Click to hide internal directories.