Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadProxyMessage ¶
ReadProxyMessage reads a protobuf message from a connection
func UpgradeToBindingConnection ¶
func UpgradeToBindingConnection(log logr.Logger, conn net.Conn, host string, port int) (resp *pb_agent.ConnResponse, err error)
UpgradeToBindingConnection upgrades a connection to a binding connection by exchanging header information with the server. It may return a BindingUpgradeFailure error if the server can't upgrade the connection. The underlying connection may also return an error if the connection is closed or otherwise fails.
Types ¶
type BindingUpgradeFailure ¶
type BindingUpgradeFailure struct {
// contains filtered or unexported fields
}
func (*BindingUpgradeFailure) Error ¶
func (e *BindingUpgradeFailure) Error() string
Click to show internal directories.
Click to hide internal directories.