type serviceResolver … // NewServiceResolver returns a static service resolve that return the given URL or // an error for the failResolve namespace. func NewServiceResolver(base url.URL) webhook.ServiceResolver { … } func (f serviceResolver) ResolveEndpoint(namespace, name string, port int32) (*url.URL, error) { … } type panickingResolver … // NewPanickingServiceResolver returns a static service resolver that panics. func NewPanickingServiceResolver(panicMessage string) webhook.ServiceResolver { … } func (f panickingResolver) ResolveEndpoint(namespace, name string, port int32) (*url.URL, error) { … }