kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/probe/tcp Index | Files

package tcp

import "gopkg.in/kubernetes/kubernetes.v0/pkg/probe/tcp"

Index

Package Files

tcp.go

func DoTCPProbe Uses

func DoTCPProbe(addr string, timeout time.Duration) (probe.Result, string, error)

DoTCPProbe checks that a TCP socket to the address can be opened. If the socket can be opened, it returns Success If the socket fails to open, it returns Failure. This is exported because some other packages may want to do direct TCP probes.

type TCPProber Uses

type TCPProber interface {
    Probe(host string, port int, timeout time.Duration) (probe.Result, string, error)
}

func New Uses

func New() TCPProber

Package tcp imports 5 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.