Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEndpoint = errors.New("invalid endpoint")
Functions ¶
func BuildEndpointURL ¶ added in v0.5.0
BuildEndpointURL returns a URL formatted address of the pod that has this sidecar running. The format of the URL depends on the arguments passed to this function, it will return either
- a ValidateControllerEndpoint() if rawIP is set
- pod://<pod>:<port> if pod is set, and rawIP and namespace are not set
- pod://<pod>.<namespace>:<port> if pod, namespace are set, and rawIP not
func ValidateControllerEndpoint ¶
ValidateControllerEndpoint validates given ip address and port, returning valid endpoint containing both ip address and port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.