probe

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe interface {
	Probe(ctx *context.ProbeContext) (Result, error)
}

Probe is the interface to execute VM probes.

func NewGuestHeartbeatProber

func NewGuestHeartbeatProber(prober vmProviderGuestHeartbeatProber) Probe

func NewGuestInfoProber added in v1.8.6

func NewGuestInfoProber(prober vmProviderGuestInfoProber) Probe

func NewTCPProber

func NewTCPProber() Probe

NewTCPProber creates a new tcp prober which implements the Probe interface to execute tcp probes.

type Prober

type Prober struct {
	TCPProbe       Probe
	GuestHeartbeat Probe
	GuestInfo      Probe
}

Prober contains the different type of probes.

func NewProber

func NewProber(vmProvider vmProviderProber) *Prober

NewProber creates a new Prober.

type Result

type Result int
const (
	// Failure is encoded as -1 (type Result).
	Failure Result = iota - 1
	// Unknown is encoded as 0 (type Result).
	Unknown
	// Success is encoded as 1 (type Result).
	Success
)

Jump to

Keyboard shortcuts

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