Documentation
¶
Index ¶
Constants ¶
View Source
const (
PROBE_TIMEOUT = 3 * time.Second
)
Variables ¶
View Source
var (
ExpectedResponses = []int{200, 201}
)
Functions ¶
func TransportWithDNSResponse ¶
func TransportWithDNSResponse(overrides map[string]string, allowInsecureCertificates bool) http.RoundTripper
TransportWithDNSResponse creates a new transport which overrides hostnames.
Types ¶
type Probe ¶
type Probe struct { Transport RoundTripperFunc // contains filtered or unexported fields }
func NewProbe ¶
func NewProbe(probeConfig *v1alpha1.DNSHealthCheckProbe, headers v1alpha1.AdditionalHeaders) *Probe
func (*Probe) ExecuteProbe ¶
func (w *Probe) ExecuteProbe(ctx context.Context, probe *v1alpha1.DNSHealthCheckProbe) <-chan struct{}
type ProbeManager ¶
type ProbeManager struct {
// contains filtered or unexported fields
}
func NewProbeManager ¶
func NewProbeManager() *ProbeManager
func (*ProbeManager) EnsureProbeWorker ¶
func (m *ProbeManager) EnsureProbeWorker(ctx context.Context, k8sClient client.Client, probeCR *v1alpha1.DNSHealthCheckProbe, headers v1alpha1.AdditionalHeaders)
EnsureProbeWorker ensures a new worker per generation of the probe. New generation of probe - new worker. If the generation has not changed, it will re-create a worker. If context is done (we are deleting) that worker will die immediately.
func (*ProbeManager) StopProbeWorker ¶
func (m *ProbeManager) StopProbeWorker(ctx context.Context, probeCR *v1alpha1.DNSHealthCheckProbe)
StopProbeWorker stops the worker and removes it from the WorkerManager
type ProbeResult ¶
Click to show internal directories.
Click to hide internal directories.