probes

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KumaProbe

type KumaProbe kube_core.Probe

KumaProbe is a type which allows to manipulate Kubernetes HttpGet probes. Probe can be either Virtual or Real.

Real probe is a probe provided by user. The only constraint existing for Real probes is that the port must be different from 'virtualPort'.

Virtual probe is an automatically generated probe on the basis of the Real probe. If probe's port equal to 'virtualPort' and the first segment of probe's path is an integer then probe is a virtual probe.

func (KumaProbe) Path

func (p KumaProbe) Path() string

func (KumaProbe) Port

func (p KumaProbe) Port() uint32

func (KumaProbe) ToReal

func (p KumaProbe) ToReal(virtualPort uint32) (KumaProbe, error)

ToReal creates Real probe assuming that 'p' is a Virtual probe. If 'p' is a Real probe, then method returns an error

func (KumaProbe) ToVirtual

func (p KumaProbe) ToVirtual(virtualPort uint32) (KumaProbe, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL