selector: use custom domain (#1760)
* util/wrapper: improve auth errors * client: add network call option * client/selector: add domain select option * client/grpc: pass network option to selector
This commit is contained in:
@@ -21,6 +21,7 @@ type Options struct {
|
||||
type SelectOptions struct {
|
||||
Filters []Filter
|
||||
Strategy Strategy
|
||||
Domain string
|
||||
|
||||
// Other options for implementations of the interface
|
||||
// can be stored in a context
|
||||
@@ -68,3 +69,10 @@ func WithStrategy(fn Strategy) SelectOption {
|
||||
o.Strategy = fn
|
||||
}
|
||||
}
|
||||
|
||||
// WithDomain sets the registry domain to use for the selection
|
||||
func WithDomain(d string) SelectOption {
|
||||
return func(o *SelectOptions) {
|
||||
o.Domain = d
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user