Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextDialer ¶
type Option ¶
type Option func(*options)
func WithInClusterDialer ¶
func WithInClusterDialer(inClusterDialer ContextDialer) Option
func WithInsecureSkipVerify ¶
func WithSelectCA ¶
type RoundTripCloser ¶
type RoundTripCloser interface { http.RoundTripper io.Closer }
func NewRoundTripper ¶
func NewRoundTripper(opts ...Option) RoundTripCloser
NewRoundTripper returns new closable RoundTripper that first tries to dial connection in standard way, if the dial operation fails due to hostname resolution the RoundTripper tries to dial from in cluster pod.
This is useful for accessing cluster internal services (pushing a CloudEvent into Knative broker).
Click to show internal directories.
Click to hide internal directories.